From a267c40f5b2f121757c8fb3afb44206584e40ee4 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sat, 12 Jul 2008 13:47:06 +0000 Subject: [PATCH] don't deref NULL pointer svn path=/trunk/; revision=34439 --- reactos/subsystems/win32/win32k/ntuser/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/window.c b/reactos/subsystems/win32/win32k/ntuser/window.c index ab285aa5cd5..7f4f55ab834 100644 --- a/reactos/subsystems/win32/win32k/ntuser/window.c +++ b/reactos/subsystems/win32/win32k/ntuser/window.c @@ -1149,7 +1149,8 @@ IntUnlinkWindow(PWINDOW_OBJECT Wnd) WndParent->FirstChild = Wnd->NextSibling; Wnd->PrevSibling = Wnd->NextSibling = Wnd->Parent = NULL; - Wnd->Wnd->Parent = NULL; + if (Wnd->Wnd) + Wnd->Wnd->Parent = NULL; } BOOL FASTCALL