Author: cwittich
Date: Sat Jul 12 08:47:06 2008
New Revision: 34439
URL:
http://svn.reactos.org/svn/reactos?rev=34439&view=rev
Log:
don't deref NULL pointer
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Sat Jul 12 08:47:06
2008
@@ -1149,7 +1149,8 @@
WndParent->FirstChild = Wnd->NextSibling;
Wnd->PrevSibling = Wnd->NextSibling = Wnd->Parent = NULL;
- Wnd->Wnd->Parent = NULL;
+ if (Wnd->Wnd)
+ Wnd->Wnd->Parent = NULL;
}
BOOL FASTCALL