[Pcsclite-cvs-commit] r5220 - /trunk/pcsc-tools/pcsc_scan.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Sep 2 12:12:26 UTC 2010


Author: rousseau
Date: Thu Sep  2 12:12:21 2010
New Revision: 5220

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5220
Log:
Correctly detect reader Plug and Play support

Modified:
    trunk/pcsc-tools/pcsc_scan.c

Modified: trunk/pcsc-tools/pcsc_scan.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/pcsc-tools/pcsc_scan.c?rev=5220&op=diff
==============================================================================
--- trunk/pcsc-tools/pcsc_scan.c (original)
+++ trunk/pcsc-tools/pcsc_scan.c Thu Sep  2 12:12:21 2010
@@ -150,7 +150,7 @@
 	rgReaderStates[0].dwCurrentState = SCARD_STATE_UNAWARE;
 
 	rv = SCardGetStatusChange(hContext, 0, rgReaderStates, 1);
-	if (rgReaderStates[0].dwEventState && SCARD_STATE_UNKNOWN)
+	if (rgReaderStates[0].dwEventState & SCARD_STATE_UNKNOWN)
 	{
 		printf("PnP reader name not supported. Using polling.\n");
 		pnp = FALSE;




More information about the Pcsclite-cvs-commit mailing list