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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Jul 4 09:25:00 UTC 2008


Author: rousseau
Date: Fri Jul  4 09:25:00 2008
New Revision: 3044

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3044
Log:
SCardGetStatusChange(): return SCARD_E_TIMEOUT instead of
SCARD_S_SUCCESS if dwTimeout == 0 (conform to Windows XP)

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=3044&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Fri Jul  4 09:25:00 2008
@@ -2183,15 +2183,11 @@
 			if (dwBreakFlag == 1)
 				break;
 
-			/* Timeout has occurred and all readers checked */
-			if (0 == dwTimeout)
-				break;
-
 			if (BLOCK_STATUS_RESUME
 				== psContextMap[dwContextIndex].contextBlockStatus)
 				break;
 
-			if (dwTimeout != INFINITE && dwTimeout != 0)
+			if (dwTimeout != INFINITE)
 			{
 				/*
 				 * If time is greater than timeout and all readers have been




More information about the Pcsclite-cvs-commit mailing list