comm.c:COMM_BuildOldCommDCB err...

Duane Clark dclark at akamail.com
Tue Apr 23 19:43:32 CDT 2002


Forwarded for marcelo at sysmo.com.br

-------------- next part --------------
--- comm.c	Tue Apr 23 17:21:41 2002
+++ wine/dlls/kernel/comm.c	Tue Apr 23 17:20:12 2002
@@ -168,16 +168,12 @@
 
 	TRACE("(%s), ptr %p\n", device, lpdcb);
 
-	if (strncasecmp(device,"COM",3))
-		return FALSE;
-
-	if (!*(device+4))
-		return FALSE;
-
-	if ((*(device+4) != ':') && (*(device+4) != ' '))
-		return FALSE;
+        /* Some applications call this function with "9600,n,8,1"
+	 * not sending the "COM1:" parameter at left of string
+	 * line bellow equality this diference */
+	if (!strncasecmp(device,"COM",3)) strcpy(temp,device+5); 
+	else strcpy(temp,device);
 	
-	strcpy(temp,device+5);
 	last=temp[strlen(temp)-1];
 	ptr = strtok(temp, ", "); 
 


More information about the wine-patches mailing list