From 346095d5f085984d80b6d9b0589c8afd2931b9cd Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 3 Dec 2012 07:57:28 -0800 Subject: [PATCH] SetWindowText() was doing ANSI conversion. --- Windows/WindowsHost.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Windows/WindowsHost.cpp b/Windows/WindowsHost.cpp index 85b317c6c4..7dc6b109ee 100644 --- a/Windows/WindowsHost.cpp +++ b/Windows/WindowsHost.cpp @@ -53,7 +53,8 @@ void WindowsHost::SetWindowTitle(const char *message) if (size > 0) { utf16_title[size] = 0; - SetWindowTextW(mainWindow_, utf16_title); + // Don't use SetWindowTextW because it will internally use DefWindowProcA. + DefWindowProcW(mainWindow_, WM_SETTEXT, 0, (LPARAM) utf16_title); delete[] utf16_title; } }