[Pcsclite-cvs-commit] r2839 - /trunk/PCSC/src/winscard_clnt.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Feb 21 13:13:28 UTC 2008
Author: rousseau
Date: Thu Feb 21 13:13:28 2008
New Revision: 2839
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=2839
Log:
SCardReleaseContext(): revert revision 2834 since we need to get the
value of dwContextIndex
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=2839&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Thu Feb 21 13:13:28 2008
@@ -567,6 +567,14 @@
LONG dwContextIndex;
PROFILE_START
+
+ /*
+ * Make sure this context has been opened
+ * and get dwContextIndex
+ */
+ dwContextIndex = SCardGetContextIndice(hContext);
+ if (dwContextIndex == -1)
+ return SCARD_E_INVALID_HANDLE;
/*
* Remove the local context from the stack
More information about the Pcsclite-cvs-commit
mailing list