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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Jan 13 14:42:17 UTC 2009


Author: rousseau
Date: Tue Jan 13 14:42:17 2009
New Revision: 3278

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3278
Log:
SCardGetStatusChange(): return if the state of the reader changed since the
previous call.

Thanks to Thomas Harning for the patch
Closes: [#311341] SCardGetStatusChange does not return CHANGED+EMPTY and
CHANGED+PRESENT sequence for remove-insert between calls

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=3278&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Tue Jan 13 14:42:17 2009
@@ -2062,7 +2062,10 @@
 
 					/* has the event counter changed since the last call? */
 					if (stateCounter != currentCounter)
+					{
 						currReader->dwEventState |= SCARD_STATE_CHANGED;
+						dwBreakFlag = 1;
+					}
 
 					/* add an event counter in the upper word of dwEventState */
 					currReader->dwEventState =




More information about the Pcsclite-cvs-commit mailing list