From 15d9fab0bbe5cae41116c7eb24dc1797f05957c1 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 28 Jun 2020 18:15:30 +0200 Subject: Common: Rename UTF16ToUTF8 This function does *not* always convert from UTF-16. It converts from UTF-16 on Windows and UTF-32 on other operating systems. Also renaming UTF8ToUTF16 for consistency, even though it technically doesn't have the same problem since it only was implemented on Windows. --- Source/Core/DolphinNoGUI/PlatformWin32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/DolphinNoGUI/PlatformWin32.cpp') diff --git a/Source/Core/DolphinNoGUI/PlatformWin32.cpp b/Source/Core/DolphinNoGUI/PlatformWin32.cpp index 7ad2f0322c..b9331f56ab 100644 --- a/Source/Core/DolphinNoGUI/PlatformWin32.cpp +++ b/Source/Core/DolphinNoGUI/PlatformWin32.cpp @@ -113,7 +113,7 @@ bool PlatformWin32::Init() void PlatformWin32::SetTitle(const std::string& string) { - SetWindowTextW(m_hwnd, UTF8ToUTF16(string).c_str()); + SetWindowTextW(m_hwnd, UTF8ToWString(string).c_str()); } void PlatformWin32::MainLoop() -- cgit v1.2.3