PATCH: CompareStringW

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

 



Changelog:
- CompareStringW should return 0 when one of the provided strings is a NULL
  pointer

Alberto

Index: ole/ole2nls.c
===================================================================
RCS file: /home/wine/wine/ole/ole2nls.c,v
retrieving revision 1.109
diff -u -r1.109 ole2nls.c
--- ole/ole2nls.c	12 Dec 2002 03:55:45 -0000	1.109
+++ ole/ole2nls.c	17 Dec 2002 17:37:24 -0000
@@ -1255,6 +1255,11 @@
 	if(fdwStyle & NORM_IGNORESYMBOLS)
 		FIXME("IGNORESYMBOLS not supported\n");
 
+    if(s1==NULL || s2==NULL)
+    {
+        SetLastError(ERROR_INVALID_PARAMETER);
+        return 0;
+    }
 	/* Is strcmp defaulting to string sort or to word sort?? */
 	/* FIXME: Handle NORM_STRINGSORT */
 	l1 = (l1==-1)?strlenW(s1):l1;




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

  Powered by Linux