mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- load resources from the dll handle
- loop untill the real stop condition is found - this makes the console properties menu working again See issue #1827 for more details. svn path=/trunk/; revision=28744
This commit is contained in:
parent
f3d89dd0ed
commit
2733ed92aa
1 changed files with 7 additions and 5 deletions
|
@ -121,15 +121,16 @@ static VOID FASTCALL
|
|||
GuiConsoleAppendMenuItems(HMENU hMenu,
|
||||
const GUICONSOLE_MENUITEM *Items)
|
||||
{
|
||||
UINT i;
|
||||
UINT i = 0;
|
||||
WCHAR szMenuString[255];
|
||||
HMENU hSubMenu;
|
||||
HINSTANCE hInst = GetModuleHandleW(L"win32csr");
|
||||
|
||||
for (i = 0; Items[i].uID != 0; i++)
|
||||
do
|
||||
{
|
||||
if (Items[i].uID != (UINT)-1)
|
||||
{
|
||||
if (LoadStringW(Win32CsrDllHandle,
|
||||
if (LoadStringW(hInst,
|
||||
Items[i].uID,
|
||||
szMenuString,
|
||||
sizeof(szMenuString) / sizeof(szMenuString[0])) > 0)
|
||||
|
@ -167,20 +168,21 @@ GuiConsoleAppendMenuItems(HMENU hMenu,
|
|||
0,
|
||||
NULL);
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}while(!(Items[i].uID == 0 && Items[i].SubMenu == NULL && Items[i].wCmdID == 0));
|
||||
}
|
||||
|
||||
static VOID FASTCALL
|
||||
GuiConsoleCreateSysMenu(PCSRSS_CONSOLE Console)
|
||||
{
|
||||
HMENU hMenu;
|
||||
|
||||
hMenu = GetSystemMenu(Console->hWindow,
|
||||
FALSE);
|
||||
if (hMenu != NULL)
|
||||
{
|
||||
GuiConsoleAppendMenuItems(hMenu,
|
||||
GuiConsoleMainMenuItems);
|
||||
DrawMenuBar(Console->hWindow);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue