From 69766de29f82efffb4d0b7349db4a0291ee46b23 Mon Sep 17 00:00:00 2001 From: Vinche Date: Sun, 9 Nov 2014 23:02:12 +0100 Subject: [PATCH] Add comments to modifications --- winpr/libwinpr/smartcard/smartcard_pcsc.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/winpr/libwinpr/smartcard/smartcard_pcsc.c b/winpr/libwinpr/smartcard/smartcard_pcsc.c index 75c0563d2..a04295225 100644 --- a/winpr/libwinpr/smartcard/smartcard_pcsc.c +++ b/winpr/libwinpr/smartcard/smartcard_pcsc.c @@ -1474,26 +1474,25 @@ WINSCARDAPI LONG WINAPI PCSC_SCardGetStatusChange_Internal(SCARDCONTEXT hContext * Should not we just act as a pass-through between the client and the remote smartcard subsystem ? */ #if 0 - - /* pcsc-lite puts an event count in the higher bits of dwEventState */ + /* pcsc-lite puts an event count in the higher bits of dwEventState */ states[j].dwEventState &= 0xFFFF; dwEventState = states[j].dwEventState & ~SCARD_STATE_CHANGED; if (dwEventState != rgReaderStates[i].dwCurrentState) { - rgReaderStates[i].dwEventState = states[j].dwEventState; + rgReaderStates[i].dwEventState = states[j].dwEventState; - if (dwEventState & SCARD_STATE_PRESENT) - { - if (!(dwEventState & SCARD_STATE_EXCLUSIVE)) - rgReaderStates[i].dwEventState |= SCARD_STATE_INUSE; - } + if (dwEventState & SCARD_STATE_PRESENT) + { + if (!(dwEventState & SCARD_STATE_EXCLUSIVE)) + rgReaderStates[i].dwEventState |= SCARD_STATE_INUSE; + } - stateChanged = TRUE; + stateChanged = TRUE; } else { - rgReaderStates[i].dwEventState = dwEventState; + rgReaderStates[i].dwEventState = dwEventState; } if (rgReaderStates[i].dwCurrentState & SCARD_STATE_IGNORE)