mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 13:45:58 +00:00
Do not check for a system menu on the NULL window
svn path=/trunk/; revision=30388
This commit is contained in:
parent
fe683582db
commit
233f55f44f
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue