https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ca9ded7af8b21ec0b5b4e…
commit ca9ded7af8b21ec0b5b4e600f05a6a8b13e555a2
Author: Thamatip Chitpong <tangaming123456(a)outlook.com>
AuthorDate: Thu Dec 22 07:38:53 2022 +0700
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Dec 22 01:38:53 2022 +0100
[NTUSER] Fix zombie window created by CTRL+ALT+DEL (#4935)
Based on patch by I_Kill_Bugs. CORE-18258
See also commit 58b0558f9.
---
win32ss/user/ntuser/winpos.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/win32ss/user/ntuser/winpos.c b/win32ss/user/ntuser/winpos.c
index 3dc4491fa09..79e29730f1e 100644
--- a/win32ss/user/ntuser/winpos.c
+++ b/win32ss/user/ntuser/winpos.c
@@ -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 );