mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
Fix some object/handle victims. Fixes bug 765.
svn path=/trunk/; revision=17790
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user