[Pcsclite-cvs-commit] r4367 - /trunk/PCSC/src/ifdwrapper.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Aug 27 13:18:31 UTC 2009
Author: rousseau
Date: Thu Aug 27 13:18:31 2009
New Revision: 4367
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4367
Log:
IFDControl(): return SCARD_E_UNSUPPORTED_FEATURE if the driver returned
IFD_ERROR_NOT_SUPPORTED or IFD_NOT_SUPPORTED
This is used to separate an unsupported value of ControlCode from a
general error
Modified:
trunk/PCSC/src/ifdwrapper.c
Modified: trunk/PCSC/src/ifdwrapper.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/ifdwrapper.c?rev=4367&op=diff
==============================================================================
--- trunk/PCSC/src/ifdwrapper.c (original)
+++ trunk/PCSC/src/ifdwrapper.c Thu Aug 27 13:18:31 2009
@@ -647,6 +647,9 @@
return SCARD_E_READER_UNAVAILABLE;
}
+ if ((IFD_ERROR_NOT_SUPPORTED == rv) || (IFD_NOT_SUPPORTED == rv))
+ return SCARD_E_UNSUPPORTED_FEATURE;
+
return SCARD_E_NOT_TRANSACTED;
}
}
More information about the Pcsclite-cvs-commit
mailing list