From 84d30c9d884ad44412cefbf6fb1f80a8a30f9116 Mon Sep 17 00:00:00 2001 From: Xu Date: Wed, 19 Jun 2024 19:56:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=BC=A9=E6=94=BE=E5=AF=BC=E8=87=B4=E7=9A=84=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Magpie.App/ProfileService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magpie.App/ProfileService.cpp b/src/Magpie.App/ProfileService.cpp index 7e3da0bd..383b14c6 100644 --- a/src/Magpie.App/ProfileService.cpp +++ b/src/Magpie.App/ProfileService.cpp @@ -205,7 +205,7 @@ const Profile* ProfileService::GetProfileForWindow(HWND hWnd, bool forAutoScale) // 先检查窗口类名,这比获取可执行文件名快得多 std::wstring className = Win32Utils::GetWndClassName(hWnd); - std::wstring_view parsedClassName = ParseClassName(Win32Utils::GetWndClassName(hWnd)); + std::wstring_view parsedClassName = ParseClassName(className); std::wstring path; std::optional isPackaged;