[Pcsclite-cvs-commit] r2770 - /trunk/PCSC/src/winscard_clnt.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Jan 29 08:59:21 UTC 2008
Author: rousseau
Date: Tue Jan 29 08:59:21 2008
New Revision: 2770
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=2770
Log:
SCardListReaders(): returns SCARD_E_NO_READERS_AVAILABLE when no reader
are available.
Thanks to Thomas Harning for the bug report
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=2770&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Tue Jan 29 08:59:21 2008
@@ -3029,6 +3029,12 @@
dwReadersLen += 1;
*pcchReaders = dwReadersLen;
+ if (1 == dwReadersLen)
+ {
+ rv = SCARD_E_NO_READERS_AVAILABLE;
+ goto end;
+ }
+
if ((mszReaders == NULL) /* text array not allocated */
|| (*pcchReaders == 0)) /* size == 0 */
{
More information about the Pcsclite-cvs-commit
mailing list