WIN32: Ensure the translated dialog strings are using the correct encoding

This commit is contained in:
Cameron Cawley 2019-04-02 20:23:13 +01:00 committed by Filippos Karapetis
parent ca054ba0b9
commit e4b78f4f62
3 changed files with 28 additions and 10 deletions

View file

@ -138,11 +138,11 @@ Common::DialogManager::DialogResult Win32DialogManager::showFileBrowser(const ch
hr = dialog->SetOptions(dwOptions);
}
LPWSTR str = Win32::ansiToUnicode(title);
LPWSTR str = Win32::ansiToUnicode(title, Win32::getCurrentCharset());
hr = dialog->SetTitle(str);
delete[] str;
str = Win32::ansiToUnicode(_("Choose"));
str = Win32::ansiToUnicode(_("Choose"), Win32::getCurrentCharset());
hr = dialog->SetOkButtonLabel(str);
delete[] str;