7047033: (smartcardio) Card.disconnect(boolean reset) does not reset when reset is true
Reviewed-by: valeriep
--- a/jdk/src/share/classes/sun/security/smartcardio/CardImpl.java Tue May 27 10:27:51 2014 +0100
+++ b/jdk/src/share/classes/sun/security/smartcardio/CardImpl.java Thu May 29 01:50:50 2014 +0400
@@ -246,7 +246,7 @@
}
checkExclusive();
try {
- SCardDisconnect(cardId, (reset ? SCARD_LEAVE_CARD : SCARD_RESET_CARD));
+ SCardDisconnect(cardId, (reset ? SCARD_RESET_CARD : SCARD_LEAVE_CARD));
} catch (PCSCException e) {
throw new CardException("disconnect() failed", e);
} finally {