From 6acdce78d17f29657c29556d42f5542e27745252 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 21 Feb 2025 22:12:53 +0100 Subject: [PATCH] Backends: Win32: use UnregisterClassW() for matching consistency. (#8423, #7979) Amend 3293ef8bb --- backends/imgui_impl_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/imgui_impl_win32.cpp b/backends/imgui_impl_win32.cpp index 433df8ea9..30776608d 100644 --- a/backends/imgui_impl_win32.cpp +++ b/backends/imgui_impl_win32.cpp @@ -1411,7 +1411,7 @@ static void ImGui_ImplWin32_InitMultiViewportSupport(bool platform_has_own_dc) static void ImGui_ImplWin32_ShutdownMultiViewportSupport() { - ::UnregisterClass(_T("ImGui Platform"), ::GetModuleHandle(nullptr)); + ::UnregisterClassW(L"ImGui Platform", ::GetModuleHandle(nullptr)); ImGui::DestroyPlatformWindows(); }