Skip to content

Commit

Permalink
Main: Fixed a bug that crashed explorer at PC startup on OS builds 22…
Browse files Browse the repository at this point in the history
…621+
  • Loading branch information
valinet committed Aug 6, 2022
1 parent 619d9ca commit 5ee6e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExplorerPatcher/dllmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -2583,7 +2583,7 @@ INT64 Shell_TrayWndSubclassProc(
{
g_bIsDesktopRaised = (lParam & 1) == 0;
}
else if (uMsg == WM_SETTINGCHANGE && IsWindows11Version22H2OrHigher() && !wcscmp(lParam, L"EnsureXAML"))
else if (uMsg == WM_SETTINGCHANGE && IsWindows11Version22H2OrHigher() && (*((WORD*)&(lParam)+1)) && !wcscmp(lParam, L"EnsureXAML"))
{
EnsureXAML();
return 0;
Expand Down

0 comments on commit 5ee6e35

Please sign in to comment.