[Pcsclite-cvs-commit] r5348 - /trunk/PCSC/src/winscard.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Sat Oct 23 12:31:01 UTC 2010


Author: rousseau
Date: Sat Oct 23 12:30:57 2010
New Revision: 5348

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5348
Log:
SCardConnect(): check the returned value of IFDPowerICC() to change the
readerState if power up succeeded

Modified:
    trunk/PCSC/src/winscard.c

Modified: trunk/PCSC/src/winscard.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard.c?rev=5348&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Sat Oct 23 12:30:57 2010
@@ -331,6 +331,9 @@
 			rv = IFDPowerICC(rContext, IFD_POWER_UP,
 				rContext->readerState->cardAtr, &dwAtrLen);
 			rContext->readerState->cardAtrLength = dwAtrLen;
+
+			if (rv == IFD_SUCCESS)
+				readerState = SCARD_PRESENT | SCARD_POWERED | SCARD_NEGOTIABLE;
 		}
 
 		if (readerState & SCARD_SWALLOWED)




More information about the Pcsclite-cvs-commit mailing list