[Pcsclite-cvs-commit] PCSC/src readerfactory.c,1.20,1.21

sauveron-guest@quantz.debian.org sauveron-guest@quantz.debian.org
Wed, 17 Sep 2003 15:03:23 +0200


Update of /cvsroot/pcsclite/PCSC/src
In directory quantz:/tmp/cvs-serv10313/src

Modified Files:
	readerfactory.c 
Log Message:
Add a full clean up when there is no space for adding all the slots of a multi-slots reader.

Index: readerfactory.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/readerfactory.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- readerfactory.c	17 Sep 2003 12:11:27 -0000	1.20
+++ readerfactory.c	17 Sep 2003 13:03:20 -0000	1.21
@@ -301,11 +301,7 @@
 				/*
 				 * No more spots left return 
 				 */
-				(sContexts[dwContext])->mMutex = 0;
-				(sContexts[dwContext])->vHandle = 0;
-				(sContexts[dwContext])->dwPublicID = 0;
-				(sContexts[dwContext])->dwIdentity = 0;
-
+				rv = RFRemoveReader(lpcReader, dwPort);
 				return SCARD_E_NO_MEMORY;
 			}