Skip to content

Commit 84d30c9

Browse files
committed
fix: 修复自动缩放导致的崩溃
1 parent 839d51d commit 84d30c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Magpie.App/ProfileService.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const Profile* ProfileService::GetProfileForWindow(HWND hWnd, bool forAutoScale)
205205

206206
// 先检查窗口类名,这比获取可执行文件名快得多
207207
std::wstring className = Win32Utils::GetWndClassName(hWnd);
208-
std::wstring_view parsedClassName = ParseClassName(Win32Utils::GetWndClassName(hWnd));
208+
std::wstring_view parsedClassName = ParseClassName(className);
209209

210210
std::wstring path;
211211
std::optional<bool> isPackaged;

0 commit comments

Comments
 (0)