Skip to content
Snippets Groups Projects
Commit 31a7cad4 authored by Alberto Massari's avatar Alberto Massari Committed by Alexandre Julliard
Browse files

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

NULL pointer.
parent 0ca46dc3
No related branches found
No related tags found
No related merge requests found
......@@ -1255,6 +1255,11 @@ int WINAPI CompareStringW(LCID lcid, DWORD fdwStyle,
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment