[Pcsclite-cvs-commit] r2567 - trunk/PCSC/src
rousseau at alioth.debian.org
rousseau at alioth.debian.org
Mon Jun 18 14:44:57 UTC 2007
Author: rousseau
Date: 2007-06-18 14:44:57 +0000 (Mon, 18 Jun 2007)
New Revision: 2567
Modified:
trunk/PCSC/src/winscard.c
Log:
SCardStatus(): check for hCard == 0
Thanks to Joshua J. Drake for the bug report
Modified: trunk/PCSC/src/winscard.c
===================================================================
--- trunk/PCSC/src/winscard.c 2007-06-18 08:27:56 UTC (rev 2566)
+++ trunk/PCSC/src/winscard.c 2007-06-18 14:44:57 UTC (rev 2567)
@@ -1216,6 +1216,9 @@
LONG rv;
PREADER_CONTEXT rContext = NULL;
+ if (hCard == 0)
+ return SCARD_E_INVALID_HANDLE;
+
rv = RFReaderInfoById(hCard, &rContext);
/*
More information about the Pcsclite-cvs-commit
mailing list