Browse Source

Backends: Win32: use UnregisterClassW() for matching consistency. (#8423, #7979)

Amend 3293ef8bb
ocornut 6 tháng trước cách đây
mục cha
commit
6acdce78d1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      backends/imgui_impl_win32.cpp

+ 1 - 1
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();
 }