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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon Sep 28 12:05:08 UTC 2009


Author: rousseau
Date: Mon Sep 28 12:05:05 2009
New Revision: 4399

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4399
Log:
SCardTransmit(): call IFDControl_v2 instead of IFDTransmit only if
dwProtocol == SCARD_PROTOCOL_RAW _and_ ifdhandler is v2.0

Thanks to Björn Kupfer for the patch

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=4399&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Mon Sep 28 12:05:05 2009
@@ -1652,7 +1652,8 @@
 
 	tempRxLength = dwRxLength;
 
-	if (pioSendPci->dwProtocol == SCARD_PROTOCOL_RAW)
+	if ((pioSendPci->dwProtocol == SCARD_PROTOCOL_RAW)
+		&& (rContext->dwVersion == IFD_HVERSION_2_0))
 	{
 		rv = IFDControl_v2(rContext, (PUCHAR) pbSendBuffer, cbSendLength,
 			pbRecvBuffer, &dwRxLength);




More information about the Pcsclite-cvs-commit mailing list