From d507099cba43f7aeaad7ad5fb82b7fc930123394 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 29 Nov 2016 15:47:49 +0100 Subject: [PATCH] tentative fix for direct access to 2wire readers --- smartcard/scard/scard.i | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/smartcard/scard/scard.i b/smartcard/scard/scard.i index 76f63ad3..87f38fa9 100644 --- a/smartcard/scard/scard.i +++ b/smartcard/scard/scard.i @@ -672,8 +672,12 @@ static SCARDRETCODE _Transmit( ) { PSCARD_IO_REQUEST piorequest=NULL; + SCARD_IO_REQUEST unknown; long ret; + unknown.dwProtocol = 0; + unknown.cbPciLength = 0; + pblRecvBuffer->ab = (unsigned char*)mem_Malloc(MAX_BUFFER_SIZE_EXTENDED*sizeof(unsigned char)); pblRecvBuffer->cBytes = MAX_BUFFER_SIZE_EXTENDED; @@ -692,6 +696,10 @@ static SCARDRETCODE _Transmit( piorequest=(PSCARD_IO_REQUEST)myg_prgSCardRawPci; break; + case 0x00: + piorequest = &unknown; + break; + default: return SCARD_E_INVALID_PARAMETER;