[Pcsclite-cvs-commit] r4518 - /trunk/PCSC/src/winscard_clnt.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Oct 27 15:05:48 UTC 2009
Author: rousseau
Date: Tue Oct 27 15:05:48 2009
New Revision: 4518
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4518
Log:
SCardGetStatusChange(): use SCARD_*_CONTEXT constants instead of
numerical values
Modified:
trunk/PCSC/src/winscard_clnt.c
Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=4518&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Tue Oct 27 15:05:48 2009
@@ -1994,7 +1994,7 @@
}
/* Now figure out sharing modes */
- if (rContext->readerSharing == -1)
+ if (rContext->readerSharing == SCARD_EXCLUSIVE_CONTEXT)
{
currReader->dwEventState |= SCARD_STATE_EXCLUSIVE;
currReader->dwEventState &= ~SCARD_STATE_INUSE;
@@ -2005,7 +2005,7 @@
dwBreakFlag = 1;
}
}
- else if (rContext->readerSharing >= 1)
+ else if (rContext->readerSharing >= SCARD_LAST_CONTEXT)
{
/* A card must be inserted for it to be INUSE */
if (dwState & SCARD_PRESENT)
@@ -2020,7 +2020,7 @@
}
}
}
- else if (rContext->readerSharing == 0)
+ else if (rContext->readerSharing == SCARD_NO_CONTEXT)
{
currReader->dwEventState &= ~SCARD_STATE_INUSE;
currReader->dwEventState &= ~SCARD_STATE_EXCLUSIVE;
More information about the Pcsclite-cvs-commit
mailing list