mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
Do not check for a system menu on the NULL window
svn path=/trunk/; revision=30388
This commit is contained in:
@@ -1821,7 +1821,7 @@ BOOL UserDrawCaption(
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user