Fix some object/handle victims. Fixes bug 765.

svn path=/trunk/; revision=17790
This commit is contained in:
Gé van Geldorp 2005-09-10 23:01:56 +00:00
parent 3a292fe93d
commit 98f577158f

View file

@ -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);