Skip to content

Commit

Permalink
IFDTransmit(): convert IFD_ICC_NOT_PRESENT into SCARD_E_NO_SMARTCARD
Browse files Browse the repository at this point in the history
The CCID driver can now reports IFD_ICC_NOT_PRESENT when a card is
removed during an APDU exchange.
  • Loading branch information
LudovicRousseau committed Sep 4, 2020
1 parent c90e0bb commit 0962ba3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ifdwrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,9 @@ LONG IFDTransmit(READER_CONTEXT * rContext, SCARD_IO_HEADER pioTxPci,
return SCARD_E_READER_UNAVAILABLE;
}

if (rv == IFD_ICC_NOT_PRESENT)
return SCARD_E_NO_SMARTCARD;

return SCARD_E_NOT_TRANSACTED;
}
}
Expand Down

0 comments on commit 0962ba3

Please sign in to comment.