From 98f577158f98509ead5333ede8dd58e111f5c160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sat, 10 Sep 2005 23:01:56 +0000 Subject: [PATCH] Fix some object/handle victims. Fixes bug 765. svn path=/trunk/; revision=17790 --- reactos/subsys/win32k/ntuser/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/window.c b/reactos/subsys/win32k/ntuser/window.c index 5135a704d83..65e9e53f0ff 100644 --- a/reactos/subsys/win32k/ntuser/window.c +++ b/reactos/subsys/win32k/ntuser/window.c @@ -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);