[Pcsclite-cvs-commit] r4269 - /trunk/PCSC/src/winscard_clnt.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon Jun 22 09:49:35 UTC 2009


Author: rousseau
Date: Mon Jun 22 09:49:34 2009
New Revision: 4269

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4269
Log:
SCardGetStatusChange(): only check the event counter if current state is
not SCARD_STATE_EMPTY

Closes [#311772] "SCardGetStatusChange only works the first time after
starting pcscd" 

Modified:
    trunk/PCSC/src/winscard_clnt.c

Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=4269&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Mon Jun 22 09:49:34 2009
@@ -2076,6 +2076,9 @@
 
 				/* Now we check all the Reader States */
 				dwState = rContext->readerState;
+
+				/* only if current state is not SCARD_STATE_EMPTY */
+				if (!(currReader->dwCurrentState & SCARD_STATE_EMPTY))
 				{
 					int currentCounter, stateCounter;
 




More information about the Pcsclite-cvs-commit mailing list