diff --git a/reactos/subsystems/win32/win32k/ntuser/window.c b/reactos/subsystems/win32/win32k/ntuser/window.c index aeed20652a2..d675d157956 100644 --- a/reactos/subsystems/win32/win32k/ntuser/window.c +++ b/reactos/subsystems/win32/win32k/ntuser/window.c @@ -2063,6 +2063,7 @@ AllocErr: { /* FIXME: Cleanup. */ DPRINT1("IntCreateWindowEx(): event CREATE hook failed. No cleanup performed!\n"); + IntUnlinkWindow(Window); RETURN((HWND)0); } #endif