Skip to content

Commit eafe251

Browse files
authored
[SHELL32] FileTypesDlg: Use StrCmpIW instead of wcsicmp (reactos#8604)
wcsicmp depends on CRT locale status. We have to respect thread locale. JIRA issue: CORE-20442 - Use shlwapi!StrCmpIW instead of wcsicmp in FileTypesDlg_CompareItems function.
1 parent 3ba9d33 commit eafe251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dll/win32/shell32/dialogs/filetypes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,9 +1652,9 @@ FileTypesDlg_CompareItems(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
16521652
PFILE_TYPE_ENTRY entry1 = (PFILE_TYPE_ENTRY)lParam1, entry2 = (PFILE_TYPE_ENTRY)lParam2;
16531653
int x = 0;
16541654
if (pG->SortCol == 1)
1655-
x = wcsicmp(GetTypeName(entry1, pG), GetTypeName(entry2, pG));
1655+
x = StrCmpIW(GetTypeName(entry1, pG), GetTypeName(entry2, pG));
16561656
if (!x && !(x = entry1->IsExtension() - entry2->IsExtension()))
1657-
x = wcsicmp(entry1->FileExtension, entry2->FileExtension);
1657+
x = StrCmpIW(entry1->FileExtension, entry2->FileExtension);
16581658
return x * pG->SortReverse;
16591659
}
16601660

0 commit comments

Comments
 (0)