mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fix some object/handle victims. Fixes bug 765.
svn path=/trunk/; revision=17790
This commit is contained in:
parent
3a292fe93d
commit
98f577158f
1 changed files with 2 additions and 2 deletions
|
@ -728,7 +728,7 @@ IntGetSystemMenu(PWINDOW_OBJECT Window, BOOL bRevert, BOOL RetMenu)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
hSysMenu = UserCreateMenu(FALSE);
|
hSysMenu = UserCreateMenu(FALSE);
|
||||||
if (NULL == SysMenu)
|
if (NULL == hSysMenu)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -741,7 +741,7 @@ IntGetSystemMenu(PWINDOW_OBJECT Window, BOOL bRevert, BOOL RetMenu)
|
||||||
SysMenu->MenuInfo.Flags |= MF_SYSMENU;
|
SysMenu->MenuInfo.Flags |= MF_SYSMENU;
|
||||||
SysMenu->MenuInfo.Wnd = Window->hSelf;
|
SysMenu->MenuInfo.Wnd = Window->hSelf;
|
||||||
hNewMenu = co_IntLoadSysMenuTemplate();
|
hNewMenu = co_IntLoadSysMenuTemplate();
|
||||||
if(!NewMenu)
|
if(!hNewMenu)
|
||||||
{
|
{
|
||||||
IntReleaseMenuObject(SysMenu);
|
IntReleaseMenuObject(SysMenu);
|
||||||
UserDestroyMenu(hSysMenu);
|
UserDestroyMenu(hSysMenu);
|
||||||
|
|
Loading…
Reference in a new issue