[NTUSER] Fix zombie window created by CTRL+ALT+DEL (#4935)

Based on patch by I_Kill_Bugs. CORE-18258
See also commit 58b0558f9.
This commit is contained in:
Thamatip Chitpong 2022-12-22 07:38:53 +07:00 committed by GitHub
parent 8efde69a25
commit ca9ded7af8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1945,9 +1945,12 @@ co_WinPosSetWindowPos(
(!(Window->ExStyle & WS_EX_TOOLWINDOW) && !Window->spwndOwner &&
(!Window->spwndParent || UserIsDesktopWindow(Window->spwndParent))))
{
co_IntShellHookNotify(HSHELL_WINDOWCREATED, (WPARAM)Window->head.h, 0);
if (!(WinPos.flags & SWP_NOACTIVATE))
UpdateShellHook(Window);
if (!UserIsDesktopWindow(Window))
{
co_IntShellHookNotify(HSHELL_WINDOWCREATED, (WPARAM)Window->head.h, 0);
if (!(WinPos.flags & SWP_NOACTIVATE))
UpdateShellHook(Window);
}
}
Window->style |= WS_VISIBLE; //IntSetStyle( Window, WS_VISIBLE, 0 );