[Pcsclite-cvs-commit] r4386 - /trunk/PCSC/src/winscard_clnt.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Sep 15 20:23:25 UTC 2009
Author: rousseau
Date: Tue Sep 15 20:23:24 2009
New Revision: 4386
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4386
Log:
SCardReleaseContext(), SCardControl(), SCardTransmit() and
SCardListReaders(): add a call to PROFILE_END() before exiting with
SCARD_E_INVALID_HANDLE error code to have a better profiling output
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=4386&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Tue Sep 15 20:23:24 2009
@@ -588,7 +588,10 @@
*/
dwContextIndex = SCardGetContextIndice(hContext);
if (dwContextIndex == -1)
+ {
+ PROFILE_END(SCARD_E_INVALID_HANDLE)
return SCARD_E_INVALID_HANDLE;
+ }
rv = SCardCheckDaemonAvailability();
if (rv != SCARD_S_SUCCESS)
@@ -2387,7 +2390,10 @@
*/
rv = SCardGetIndicesFromHandle(hCard, &dwContextIndex, &dwChannelIndex);
if (rv == -1)
+ {
+ PROFILE_END(SCARD_E_INVALID_HANDLE)
return SCARD_E_INVALID_HANDLE;
+ }
(void)SYS_MutexLock(psContextMap[dwContextIndex].mMutex);
@@ -2938,6 +2944,7 @@
if (rv == -1)
{
*pcbRecvLength = 0;
+ PROFILE_END(SCARD_E_INVALID_HANDLE)
return SCARD_E_INVALID_HANDLE;
}
@@ -3226,7 +3233,10 @@
*/
dwContextIndex = SCardGetContextIndice(hContext);
if (dwContextIndex == -1)
+ {
+ PROFILE_END(SCARD_E_INVALID_HANDLE)
return SCARD_E_INVALID_HANDLE;
+ }
(void)SYS_MutexLock(psContextMap[dwContextIndex].mMutex);
More information about the Pcsclite-cvs-commit
mailing list