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/ntu... ============================================================================== --- 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))