[ros-diffs] [hpoussin] 30388: Do not check for a system menu on the NULL window
hpoussin at svn.reactos.org
hpoussin at svn.reactos.org
Mon Nov 12 14:36:34 CET 2007
Author: hpoussin
Date: Mon Nov 12 16:36:34 2007
New Revision: 30388
URL: http://svn.reactos.org/svn/reactos?rev=30388&view=rev
Log:
Do not check for a system menu on the NULL window
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/painting.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/painting.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/painting.c?rev=30388&r1=30387&r2=30388&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/painting.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/painting.c Mon Nov 12 16:36:34 2007
@@ -1821,7 +1821,7 @@
ButtonWidth = UserGetSystemMetrics(SM_CXSMSIZE) - 2;
else ButtonWidth = UserGetSystemMetrics(SM_CXSIZE) - 2;
- if(pWnd->Style & WS_SYSMENU)
+ if ((pWnd != NULL) && (pWnd->Style & WS_SYSMENU))
{
r.right -= 3 + ButtonWidth;
if(! (uFlags & DC_SMALLCAP))
More information about the Ros-diffs
mailing list