From fe7842eda3d9d0cab57fe1ac2604dfaa9fac4a27 Mon Sep 17 00:00:00 2001 From: Martin Endler Date: Sun, 23 Feb 2020 20:08:35 +0100 Subject: [PATCH] Add comments about Windows workarounds in the pcsclite.cpp --- src/pcsclite.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pcsclite.cpp b/src/pcsclite.cpp index 8e815bb..b684ec4 100644 --- a/src/pcsclite.cpp +++ b/src/pcsclite.cpp @@ -31,6 +31,7 @@ PCSCLite::PCSCLite(): m_card_context(0), assert(uv_mutex_init(&m_mutex) == 0); assert(uv_cond_init(&m_cond) == 0); + // TODO: consider removing this Windows workaround that should not be needed anymore #ifdef _WIN32 HKEY hKey; DWORD startStatus, datacb = sizeof(DWORD); @@ -67,6 +68,7 @@ postServiceCheck: #endif // _WIN32 LONG result; + // TODO: consider removing this do-while Windows workaround that should not be needed anymore do { result = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL,