[Pcsclite-cvs-commit] r2549 - trunk/PCSC/src

rousseau at alioth.debian.org rousseau at alioth.debian.org
Thu May 24 09:58:34 UTC 2007


Author: rousseau
Date: 2007-05-24 09:58:34 +0000 (Thu, 24 May 2007)
New Revision: 2549

Modified:
   trunk/PCSC/src/readerfactory.c
Log:
RFSetReaderEventState(): unlock the card on removal. This will unlock
any waiting SCardConnect() and SCardReconnect()


Modified: trunk/PCSC/src/readerfactory.c
===================================================================
--- trunk/PCSC/src/readerfactory.c	2007-05-24 08:54:41 UTC (rev 2548)
+++ trunk/PCSC/src/readerfactory.c	2007-05-24 09:58:34 UTC (rev 2549)
@@ -1308,6 +1308,13 @@
 			rContext->psHandles[i].dwEventStatus = dwEvent;
 	}
 
+	if (SCARD_REMOVED == dwEvent)
+	{
+		/* unlock the card */
+		rContext->dwLockId = 0;
+		rContext->LockCount = 0;
+	}
+
 	return SCARD_S_SUCCESS;
 }
 




More information about the Pcsclite-cvs-commit mailing list