patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

the function BuildCommDCBAndTimeoutsA ignores the case of its input string. At least on winnt 4.0

ChangeLog
-------------
	* : Stefan Leichter <Stefan.Leichter@camLine.com>
	Made the argument parsing case insensitive
--- wine-20021007/dlls/kernel/comm.c	Sat Sep  7 22:20:01 2002
+++ wine/dlls/kernel/comm.c	Thu Oct 17 19:06:30 2002
@@ -361,25 +361,25 @@
 		DWORD	flag,x;
 
 		flag=0;
-		if (!strncmp("baud=",ptr,5)) {
+		if (!strncasecmp("baud=",ptr,5)) {
 			if (!sscanf(ptr+5,"%ld",&x))
 				WARN("Couldn't parse %s\n",ptr);
 			lpdcb->BaudRate = x;
 			flag=1;
 		}
-		if (!strncmp("stop=",ptr,5)) {
+		if (!strncasecmp("stop=",ptr,5)) {
 			if (!sscanf(ptr+5,"%ld",&x))
 				WARN("Couldn't parse %s\n",ptr);
 			lpdcb->StopBits = x;
 			flag=1;
 		}
-		if (!strncmp("data=",ptr,5)) {
+		if (!strncasecmp("data=",ptr,5)) {
 			if (!sscanf(ptr+5,"%ld",&x))
 				WARN("Couldn't parse %s\n",ptr);
 			lpdcb->ByteSize = x;
 			flag=1;
 		}
-		if (!strncmp("parity=",ptr,7)) {
+		if (!strncasecmp("parity=",ptr,7)) {
 			lpdcb->fParity	= TRUE;
 			switch (ptr[7]) {
 			case 'N':case 'n':

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux