mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 11:21:51 +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)
|
if (MenuInfo->MenuItemList[MenuItemNumber] == NULL)
|
||||||
{
|
{
|
||||||
/* Make it a separator line and use menu colors */
|
/* 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));
|
memset(MenuLineText, 0xC4, (MenuInfo->Right - MenuInfo->Left - 1));
|
||||||
Attribute = ATTR(UiMenuFgColor, UiMenuBgColor);
|
Attribute = ATTR(UiMenuFgColor, UiMenuBgColor);
|
||||||
}
|
}
|
||||||
|
|
|
@ -451,7 +451,7 @@ TuiDrawMenuItem(PUI_MENU_INFO MenuInfo,
|
||||||
//
|
//
|
||||||
// Make it a separator line and use menu colors
|
// 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));
|
memset(MenuLineText, 0xC4, (MenuInfo->Right - MenuInfo->Left - 1));
|
||||||
Attribute = ATTR(UiMenuFgColor, UiMenuBgColor);
|
Attribute = ATTR(UiMenuFgColor, UiMenuBgColor);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue