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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Sep 2 12:10:28 UTC 2010


Author: rousseau
Date: Thu Sep  2 12:10:24 2010
New Revision: 5219

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5219
Log:
Complete change in revision 5212 

SCardGetStatusChange() and SCardListReaders() were broken.

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=5219&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Thu Sep  2 12:10:24 2010
@@ -1969,7 +1969,7 @@
 					int k, newReaderCount = 0;
 
 					for (k=0; k < PCSCLITE_MAX_READERS_CONTEXTS; k++)
-						if (readerStates[k].readerName != '\0')
+						if (readerStates[k].readerName[0] != '\0')
 							newReaderCount++;
 
 					if (newReaderCount != currentReaderCount)
@@ -3107,7 +3107,7 @@
 
 	for (i = 0; i < PCSCLITE_MAX_READERS_CONTEXTS; i++)
 	{
-		if (readerStates[i].readerName != '\0')
+		if (readerStates[i].readerName[0] != '\0')
 		{
 			/*
 			 * Build the multi-string




More information about the Pcsclite-cvs-commit mailing list