ole32: Compare upper character values directly in entryNameCmp.

The sort function used by native is not entirely consistent with lstrcmpiW,
even on Windows.
This commit is contained in:
Vincent Povirk 2009-12-17 15:41:57 -06:00 committed by Alexandre Julliard
parent 7f175bd47c
commit 5d9fd1b716
1 changed files with 2 additions and 2 deletions

View File

@ -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;