[Pcsclite-cvs-commit] r5355 - /trunk/PCSC/src/winscard.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Oct 26 09:06:47 UTC 2010


Author: rousseau
Date: Tue Oct 26 09:06:42 2010
New Revision: 5355

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5355
Log:
SCardEstablishContext(): do not check for phContext NULL pointer since
we are called from ContextThread() with a correct value

Modified:
    trunk/PCSC/src/winscard.c

Modified: trunk/PCSC/src/winscard.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard.c?rev=5355&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Tue Oct 26 09:06:42 2010
@@ -195,11 +195,6 @@
 {
 	(void)pvReserved1;
 	(void)pvReserved2;
-	/*
-	 * Check for NULL pointer
-	 */
-	if (phContext == 0)
-		return SCARD_E_INVALID_PARAMETER;
 
 	if (dwScope != SCARD_SCOPE_USER && dwScope != SCARD_SCOPE_TERMINAL &&
 		dwScope != SCARD_SCOPE_SYSTEM && dwScope != SCARD_SCOPE_GLOBAL)




More information about the Pcsclite-cvs-commit mailing list