changeset 24624:c46acbd3c30b

7047033: (smartcardio) Card.disconnect(boolean reset) does not reset when reset is true Reviewed-by: valeriep
author igerasim
date Thu, 29 May 2014 01:50:50 +0400
parents c094ffea7aee
children 22fb8a68756f
files jdk/src/share/classes/sun/security/smartcardio/CardImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 {