mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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
|
||||
{
|
||||
hSysMenu = UserCreateMenu(FALSE);
|
||||
if (NULL == SysMenu)
|
||||
if (NULL == hSysMenu)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
@ -741,7 +741,7 @@ IntGetSystemMenu(PWINDOW_OBJECT Window, BOOL bRevert, BOOL RetMenu)
|
|||
SysMenu->MenuInfo.Flags |= MF_SYSMENU;
|
||||
SysMenu->MenuInfo.Wnd = Window->hSelf;
|
||||
hNewMenu = co_IntLoadSysMenuTemplate();
|
||||
if(!NewMenu)
|
||||
if(!hNewMenu)
|
||||
{
|
||||
IntReleaseMenuObject(SysMenu);
|
||||
UserDestroyMenu(hSysMenu);
|
||||
|
|
Loading…
Reference in a new issue