[Pcsclite-cvs-commit] CVS Drivers/ccid/src

CVS User rousseau ludovic.rousseau@free.fr
Fri, 03 Sep 2004 13:39:34 -0600


Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv21829/src

Modified Files:
	commands.c 
Log Message:
SetParameters(): returns IFD_NOT_SUPPORTED if the CCID error is "command
not supported".


--- /cvsroot/pcsclite/Drivers/ccid/src/commands.c	2004/08/06 11:13:25	1.28
+++ /cvsroot/pcsclite/Drivers/ccid/src/commands.c	2004/09/03 19:39:34	1.29
@@ -18,7 +18,7 @@
 */
 
 /*
- * $Id: commands.c,v 1.28 2004/08/06 11:13:25 rousseau Exp $
+ * $Id: commands.c,v 1.29 2004/09/03 19:39:34 rousseau Exp $
  */
 
 #include <string.h>
@@ -578,7 +578,10 @@
 	if (cmd[STATUS_OFFSET] & CCID_COMMAND_FAILED)
 	{
 		ccid_error(cmd[ERROR_OFFSET], __FILE__, __LINE__, __FUNCTION__);    /* bError */
-		return IFD_COMMUNICATION_ERROR;
+		if (0x00 == cmd[ERROR_OFFSET])	/* command not supported */
+			return IFD_NOT_SUPPORTED;
+		else
+			return IFD_COMMUNICATION_ERROR;
 	}
 
 	return IFD_SUCCESS;