mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[FREELDR] Don't hardcode buffer size.
This commit is contained in:
parent
5cad040726
commit
497fee1622
2 changed files with 2 additions and 2 deletions
|
@ -356,7 +356,7 @@ UiDrawMenuItem(IN PUI_MENU_INFO MenuInfo,
|
|||
if (MenuInfo->MenuItemList[MenuItemNumber] == NULL)
|
||||
{
|
||||
/* Make it a separator line and use menu colors */
|
||||
memset(MenuLineText, 0, 80);
|
||||
memset(MenuLineText, 0, sizeof(MenuLineText));
|
||||
memset(MenuLineText, 0xC4, (MenuInfo->Right - MenuInfo->Left - 1));
|
||||
Attribute = ATTR(UiMenuFgColor, UiMenuBgColor);
|
||||
}
|
||||
|
|
|
@ -451,7 +451,7 @@ TuiDrawMenuItem(PUI_MENU_INFO MenuInfo,
|
|||
//
|
||||
// Make it a separator line and use menu colors
|
||||
//
|
||||
memset(MenuLineText, 0, 80);
|
||||
memset(MenuLineText, 0, sizeof(MenuLineText));
|
||||
memset(MenuLineText, 0xC4, (MenuInfo->Right - MenuInfo->Left - 1));
|
||||
Attribute = ATTR(UiMenuFgColor, UiMenuBgColor);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue