Commit 5d9fd1b7 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

ole32: Compare upper character values directly in entryNameCmp.

The sort function used by native is not entirely consistent with lstrcmpiW, even on Windows.
parent 7f175bd4
......@@ -1350,12 +1350,12 @@ static LONG entryNameCmp(
{
LONG diff = lstrlenW(name1) - lstrlenW(name2);
if (diff == 0)
while (diff == 0 && *name1 != 0)
{
/*
* We compare the string themselves only when they are of the same length
*/
diff = lstrcmpiW( name1, name2);
diff = toupperW(*name1++) - toupperW(*name2++);
}
return diff;
......
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