浏览代码

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

Amend 3293ef8bb
ocornut 5 月之前
父节点
当前提交
6acdce78d1
共有 1 个文件被更改,包括 1 次插入1 次删除
  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()
 static void ImGui_ImplWin32_ShutdownMultiViewportSupport()
 {
 {
-    ::UnregisterClass(_T("ImGui Platform"), ::GetModuleHandle(nullptr));
+    ::UnregisterClassW(L"ImGui Platform", ::GetModuleHandle(nullptr));
     ImGui::DestroyPlatformWindows();
     ImGui::DestroyPlatformWindows();
 }
 }