changeset 7224:a481e20ef8e0

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 61ecb4a9aa13
children 7f90a19c3748
files src/share/classes/sun/security/smartcardio/CardImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/smartcardio/CardImpl.java	Thu May 29 13:47:38 2014 +0400
+++ b/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 {