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:
parent
7f175bd47c
commit
5d9fd1b716
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue