added debug information

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@305 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-10-08 08:11:00 +00:00
parent e9c53a09c3
commit 212bbf0959

View File

@@ -10,9 +10,10 @@
RESPONSECODE
IFDHCreateChannel (DWORD Lun, DWORD Channel)
{
Log1(PCSC_LOG_DEBUG, "");
if (vicc_init() < 0)
if (vicc_init() < 0) {
Log1(PCSC_LOG_ERROR, "Could not initialize connection to virtual ICC");
return IFD_COMMUNICATION_ERROR;
}
return IFD_SUCCESS;
}
@@ -28,7 +29,10 @@ IFDHCloseChannel (DWORD Lun)
{
Log1(PCSC_LOG_DEBUG, "");
RESPONSECODE r = vicc_eject();
if (vicc_exit() < 0) return IFD_COMMUNICATION_ERROR;
if (vicc_exit() < 0) {
Log1(PCSC_LOG_ERROR, "Could not close connection to virtual ICC");
return IFD_COMMUNICATION_ERROR;
}
return r;
}