[SHELL32] FileTypesDlg: Use StrCmpIW instead of wcsicmp (#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.
This commit is contained in:
Katayama Hirofumi MZ
2026-01-17 20:34:44 +09:00
committed by GitHub
parent 3ba9d33b03
commit eafe25143b

View File

@@ -1652,9 +1652,9 @@ FileTypesDlg_CompareItems(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
PFILE_TYPE_ENTRY entry1 = (PFILE_TYPE_ENTRY)lParam1, entry2 = (PFILE_TYPE_ENTRY)lParam2;
int x = 0;
if (pG->SortCol == 1)
x = wcsicmp(GetTypeName(entry1, pG), GetTypeName(entry2, pG));
x = StrCmpIW(GetTypeName(entry1, pG), GetTypeName(entry2, pG));
if (!x && !(x = entry1->IsExtension() - entry2->IsExtension()))
x = wcsicmp(entry1->FileExtension, entry2->FileExtension);
x = StrCmpIW(entry1->FileExtension, entry2->FileExtension);
return x * pG->SortReverse;
}