[ros-diffs] [cwittich] 34439: don't deref NULL pointer
cwittich at svn.reactos.org
cwittich at svn.reactos.org
Sat Jul 12 15:47:06 CEST 2008
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/ntuser/window.c?rev=34439&r1=34438&r2=34439&view=diff
==============================================================================
--- 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
More information about the Ros-diffs
mailing list