[Pcsclite-cvs-commit] r4705 - /trunk/PCSC/src/winscard.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Feb 2 14:53:13 UTC 2010
Author: rousseau
Date: Tue Feb 2 14:53:12 2010
New Revision: 4705
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4705
Log:
SCardStatus(): returns SCARD_E_SHARING_VIOLATION if the reader is
already used
More conform to Windows
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=4705&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Tue Feb 2 14:53:12 2010
@@ -1241,6 +1241,12 @@
if (hCard == 0)
return SCARD_E_INVALID_HANDLE;
+ /*
+ * Make sure no one has a lock on this reader
+ */
+ if ((rv = RFCheckSharing(hCard)) != SCARD_S_SUCCESS)
+ return rv;
+
rv = RFReaderInfoById(hCard, &rContext);
/*
More information about the Pcsclite-cvs-commit
mailing list