Add comments about Windows workarounds in the pcsclite.cpp
This commit is contained in:
@@ -31,6 +31,7 @@ PCSCLite::PCSCLite(): m_card_context(0),
|
|||||||
assert(uv_mutex_init(&m_mutex) == 0);
|
assert(uv_mutex_init(&m_mutex) == 0);
|
||||||
assert(uv_cond_init(&m_cond) == 0);
|
assert(uv_cond_init(&m_cond) == 0);
|
||||||
|
|
||||||
|
// TODO: consider removing this Windows workaround that should not be needed anymore
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
HKEY hKey;
|
HKEY hKey;
|
||||||
DWORD startStatus, datacb = sizeof(DWORD);
|
DWORD startStatus, datacb = sizeof(DWORD);
|
||||||
@@ -67,6 +68,7 @@ postServiceCheck:
|
|||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
|
|
||||||
LONG result;
|
LONG result;
|
||||||
|
// TODO: consider removing this do-while Windows workaround that should not be needed anymore
|
||||||
do {
|
do {
|
||||||
result = SCardEstablishContext(SCARD_SCOPE_SYSTEM,
|
result = SCardEstablishContext(SCARD_SCOPE_SYSTEM,
|
||||||
NULL,
|
NULL,
|
||||||
|
|||||||
Reference in New Issue
Block a user