Commit 31a7cad4 authored by Alberto Massari's avatar Alberto Massari Committed by Alexandre Julliard

CompareStringW should return 0 when one of the provided strings is a

NULL pointer.
parent 0ca46dc3
...@@ -1255,6 +1255,11 @@ int WINAPI CompareStringW(LCID lcid, DWORD fdwStyle, ...@@ -1255,6 +1255,11 @@ int WINAPI CompareStringW(LCID lcid, DWORD fdwStyle,
if(fdwStyle & NORM_IGNORESYMBOLS) if(fdwStyle & NORM_IGNORESYMBOLS)
FIXME("IGNORESYMBOLS not supported\n"); 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?? */ /* Is strcmp defaulting to string sort or to word sort?? */
/* FIXME: Handle NORM_STRINGSORT */ /* FIXME: Handle NORM_STRINGSORT */
l1 = (l1==-1)?strlenW(s1):l1; l1 = (l1==-1)?strlenW(s1):l1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment