提交 934d40dc 编写于 作者: I igerasim

7047033: (smartcardio) Card.disconnect(boolean reset) does not reset when reset is true

Reviewed-by: valeriep
上级 e1518847
...@@ -246,7 +246,7 @@ final class CardImpl extends Card { ...@@ -246,7 +246,7 @@ final class CardImpl extends Card {
} }
checkExclusive(); checkExclusive();
try { try {
SCardDisconnect(cardId, (reset ? SCARD_LEAVE_CARD : SCARD_RESET_CARD)); SCardDisconnect(cardId, (reset ? SCARD_RESET_CARD : SCARD_LEAVE_CARD));
} catch (PCSCException e) { } catch (PCSCException e) {
throw new CardException("disconnect() failed", e); throw new CardException("disconnect() failed", e);
} finally { } finally {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册