diff options
author | Cameron Cawley | 2019-04-02 20:23:13 +0100 |
---|---|---|
committer | Filippos Karapetis | 2019-04-04 01:06:30 +0300 |
commit | e4b78f4f621a7d73c08099c3b7674f3966cf8da4 (patch) | |
tree | 65c558b9ce3c96246f35a6ad558ab3171076e6b8 /backends/dialogs/win32 | |
parent | ca054ba0b97ae555926340364294f3204b960833 (diff) | |
download | scummvm-rg350-e4b78f4f621a7d73c08099c3b7674f3966cf8da4.tar.gz scummvm-rg350-e4b78f4f621a7d73c08099c3b7674f3966cf8da4.tar.bz2 scummvm-rg350-e4b78f4f621a7d73c08099c3b7674f3966cf8da4.zip |
WIN32: Ensure the translated dialog strings are using the correct encoding
Diffstat (limited to 'backends/dialogs/win32')
-rw-r--r-- | backends/dialogs/win32/win32-dialogs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/dialogs/win32/win32-dialogs.cpp b/backends/dialogs/win32/win32-dialogs.cpp index fca0601a71..d9f7bf9a60 100644 --- a/backends/dialogs/win32/win32-dialogs.cpp +++ b/backends/dialogs/win32/win32-dialogs.cpp @@ -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; |