diff --git a/reactos/win32ss/user/ntuser/menu.c b/reactos/win32ss/user/ntuser/menu.c index cc43469ff04..b687b327549 100644 --- a/reactos/win32ss/user/ntuser/menu.c +++ b/reactos/win32ss/user/ntuser/menu.c @@ -2706,7 +2706,13 @@ UINT MENU_DrawMenuBar( HDC hDC, LPRECT lprect, PWND pWnd, BOOL suppress_draw ) HFONT hfontOld = 0; PMENU lppop = UserGetMenuObject(UlongToHandle(pWnd->IDMenu)); - if (lppop == NULL || lprect == NULL) + if (lppop == NULL) + { + // No menu. Do not reserve any space + return 0; + } + + if (lprect == NULL) { return UserGetSystemMetrics(SM_CYMENU); }