[Pcsclite-cvs-commit] r5401 - /trunk/PCSC/src/winscard.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Nov 16 15:52:57 UTC 2010
Author: rousseau
Date: Tue Nov 16 15:52:55 2010
New Revision: 5401
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5401
Log:
SCardConnect(): change the power state to POWER_STATE_INUSE only if the
card has been powered on.
The card is NOT powered on if mode is SCARD_SHARE_DIRECT
Modified:
trunk/PCSC/src/winscard.c
Modified: trunk/PCSC/src/winscard.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard.c?rev=5401&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Tue Nov 16 15:52:55 2010
@@ -320,10 +320,10 @@
Log1(PCSC_LOG_ERROR, "Card Not Powered");
return SCARD_W_UNPOWERED_CARD;
}
- }
-
- /* the card is now in use */
- rContext->powerState = POWER_STATE_INUSE;
+
+ /* the card is now in use */
+ rContext->powerState = POWER_STATE_INUSE;
+ }
/*******************************************
*
More information about the Pcsclite-cvs-commit
mailing list