[Pcsclite-cvs-commit] r2142 - trunk/PCSC/src
Ludovic Rousseau
rousseau at costa.debian.org
Thu Aug 31 18:55:52 UTC 2006
Author: rousseau
Date: 2006-08-31 18:55:51 +0000 (Thu, 31 Aug 2006)
New Revision: 2142
Modified:
trunk/PCSC/src/winscard_clnt.c
Log:
SCardGetStatusChange(): do not test for (cReaders < 0) since cReaders is
a DWORD and a DWORD is unsigned.
Thanks to -Wextra for the bug report
Modified: trunk/PCSC/src/winscard_clnt.c
===================================================================
--- trunk/PCSC/src/winscard_clnt.c 2006-08-15 15:36:13 UTC (rev 2141)
+++ trunk/PCSC/src/winscard_clnt.c 2006-08-31 18:55:51 UTC (rev 2142)
@@ -1619,9 +1619,6 @@
if (rgReaderStates == NULL && cReaders > 0)
return SCARD_E_INVALID_PARAMETER;
- if (cReaders < 0)
- return SCARD_E_INVALID_VALUE;
-
if (SCardCheckDaemonAvailability() != SCARD_S_SUCCESS)
return SCARD_E_NO_SERVICE;
More information about the Pcsclite-cvs-commit
mailing list