[Pcsclite-cvs-commit] PCSC/src winscard_svc.c,1.22,1.23

rousseau@haydn.debian.org rousseau@haydn.debian.org


Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv32252/src

Modified Files:
	winscard_svc.c 
Log Message:
in SCardSetAttrib() the cbAttrLen is a DWORD and not a LPDWORD so use
gsStr->cbAttrLen instead of &gsStr->cbAttrLen. Bad cut-n-paste here!


Index: winscard_svc.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/winscard_svc.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- winscard_svc.c	21 Apr 2004 21:42:33 -0000	1.22
+++ winscard_svc.c	6 May 2004 06:36:13 -0000	1.23
@@ -103,7 +103,6 @@
 	
 	while (1)
 	{
-		
 		switch (rv = SHMProcessEventsContext(&psContext[dwContextIndex].dwClientID, &msgStruct, 0))
 		{
 		case 0:
@@ -197,7 +196,6 @@
 	 * Zero out everything 
 	 */
 	rv = 0;
-
 	switch (msgStruct->command)
 	{
 
@@ -318,7 +316,7 @@
 		rv = MSGCheckHandleAssociation(gsStr->hCard, dwContextIndex);
 		if (rv != 0) return rv;
 		gsStr->rv = SCardSetAttrib(gsStr->hCard, gsStr->dwAttrId,
-			gsStr->pbAttr, &gsStr->cbAttrLen);
+			gsStr->pbAttr, gsStr->cbAttrLen);
 		break;
 
 	default: