[Pcsclite-cvs-commit] r6956 - trunk/contrib/libPCSCv2part10

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Fri Aug 8 08:43:11 UTC 2014


Author: rousseau
Date: 2014-08-08 08:43:11 +0000 (Fri, 08 Aug 2014)
New Revision: 6956

Modified:
   trunk/contrib/libPCSCv2part10/sample.c
Log:
Check value returned by SCardConnect()

Stop the execution if SCardConnect() fails.


Modified: trunk/contrib/libPCSCv2part10/sample.c
===================================================================
--- trunk/contrib/libPCSCv2part10/sample.c	2014-08-08 08:42:11 UTC (rev 6955)
+++ trunk/contrib/libPCSCv2part10/sample.c	2014-08-08 08:43:11 UTC (rev 6956)
@@ -63,6 +63,7 @@
 	rv = SCardConnect(hContext, mszReaders,
 		SCARD_SHARE_SHARED, SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1,
 		&hCard, &dwPref);
+	PCSC_ERROR_EXIT(rv)
 
 	/* the interesting part is here */
 	ret = PCSCv2Part10_find_TLV_property_by_tag_from_hcard(hCard,




More information about the Pcsclite-cvs-commit mailing list