use syscolor brush for menu background, fixes a brush leak.

svn path=/trunk/; revision=32146
This commit is contained in:
Timo Kreuzer 2008-02-06 00:43:15 +00:00
parent 8de349c343
commit d03dd0d4f6

View file

@ -346,8 +346,7 @@ IntCreateMenu(PHANDLE Handle, BOOL IsMenuBar)
Menu->MenuInfo.fMask = 0; /* not used */
Menu->MenuInfo.dwStyle = 0; /* FIXME */
Menu->MenuInfo.cyMax = 0; /* default */
Menu->MenuInfo.hbrBack =
NtGdiCreateSolidBrush(RGB(192, 192, 192), 0); /* FIXME: default background color */
Menu->MenuInfo.hbrBack = IntGetSysColorBrush(COLOR_MENU);
Menu->MenuInfo.dwContextHelpID = 0; /* default */
Menu->MenuInfo.dwMenuData = 0; /* default */
Menu->MenuInfo.Self = *Handle;
@ -1995,7 +1994,7 @@ NtUserGetMenuItemRect(
Rect.top += YMove;
Rect.right += XMove;
Rect.bottom += YMove;
Status = MmCopyToCaller(lprcItem, &Rect, sizeof(RECT));
if (! NT_SUCCESS(Status))
{