7047033: (smartcardio) Card.disconnect(boolean reset) does not reset when reset is true
authorigerasim
Thu, 29 May 2014 01:50:50 +0400
changeset 24624 c46acbd3c30b
parent 24623 c094ffea7aee
child 24625 22fb8a68756f
7047033: (smartcardio) Card.disconnect(boolean reset) does not reset when reset is true Reviewed-by: valeriep
jdk/src/share/classes/sun/security/smartcardio/CardImpl.java
--- 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 {