Skip to content

Commit

Permalink
fix: 修复自动缩放导致的崩溃
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed Jun 19, 2024
1 parent 839d51d commit 84d30c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Magpie.App/ProfileService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool> isPackaged;
Expand Down

0 comments on commit 84d30c9

Please sign in to comment.