mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Fix inconsistent cBytes value between WinScard and pcsc-lite.
This commit is contained in:
@@ -1142,7 +1142,13 @@ static LONG smartcard_StatusW_Call(SMARTCARD_DEVICE* smartcard, SMARTCARD_OPERAT
|
||||
if (!call->fmszReaderNamesIsNULL)
|
||||
ret.mszReaderNames = (BYTE*) mszReaderNames;
|
||||
|
||||
// WinScard returns the number of CHARACTERS whereas pcsc-lite returns the
|
||||
// number of BYTES.
|
||||
#ifdef _WIN32
|
||||
ret.cBytes = cchReaderLen * 2;
|
||||
#else
|
||||
ret.cBytes = cchReaderLen;
|
||||
#endif
|
||||
|
||||
if (call->cbAtrLen)
|
||||
ret.cbAtrLen = cbAtrLen;
|
||||
|
||||
Reference in New Issue
Block a user