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

Based on patch by I_Kill_Bugs.
Fixes the regression which was introduced to master by 0.4.15-dev-1126-g 58b0558f94

fix picked from 0.4.15-dev-5532-g ca9ded7af8
This commit is contained in:
Joachim Henze 2022-12-26 01:45:34 +01:00
parent 4520d0356b
commit 5acdcdbbae

View file

@ -1863,11 +1863,14 @@ co_WinPosSetWindowPos(
else if ((Window->ExStyle & WS_EX_APPWINDOW) ||
(!(Window->ExStyle & WS_EX_TOOLWINDOW) && !Window->spwndOwner &&
(!Window->spwndParent || UserIsDesktopWindow(Window->spwndParent))))
{
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 );
Window->head.pti->cVisWindows++;