From fe9f8bcea5fb757bab0cae1c686c91ea81668e69 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Fri, 17 Apr 2009 20:34:09 +0000 Subject: [PATCH] - Ref bug 4074: Need to test it again to see if it crashes further down the line. svn path=/trunk/; revision=40562 --- reactos/subsystems/win32/win32k/ntuser/window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/window.c b/reactos/subsystems/win32/win32k/ntuser/window.c index a7f600f4a83..795e6ecf402 100644 --- a/reactos/subsystems/win32/win32k/ntuser/window.c +++ b/reactos/subsystems/win32/win32k/ntuser/window.c @@ -2397,10 +2397,12 @@ BOOLEAN FASTCALL co_UserDestroyWindow(PWINDOW_OBJECT Window) BOOLEAN isChild; PWINDOW Wnd; - ASSERT_REFS_CO(Window); //fixme: temp hack? + ASSERT_REFS_CO(Window); // FIXME: temp hack? Wnd = Window->Wnd; + if (!Wnd) return TRUE; // FIXME: Need to finish object rewrite or lock the thread when killing the window! + /* Check for owner thread */ if ((Window->OwnerThread != PsGetCurrentThread())) {