don't deref NULL pointer
authorChristoph von Wittich <christoph_vw@reactos.org>
Sat, 12 Jul 2008 13:47:06 +0000 (13:47 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Sat, 12 Jul 2008 13:47:06 +0000 (13:47 +0000)
svn path=/trunk/; revision=34439

reactos/subsystems/win32/win32k/ntuser/window.c

index ab285aa..7f4f55a 100644 (file)
@@ -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