--- trunk/reactos/subsys/win32k/ntuser/window.c 2005-09-10 22:35:08 UTC (rev 17789)
+++ trunk/reactos/subsys/win32k/ntuser/window.c 2005-09-10 23:01:56 UTC (rev 17790)
@@ -728,7 +728,7 @@
else
{
hSysMenu = UserCreateMenu(FALSE);
- if (NULL == SysMenu)
+ if (NULL == hSysMenu)
{
return NULL;
}
@@ -741,7 +741,7 @@
SysMenu->MenuInfo.Flags |= MF_SYSMENU;
SysMenu->MenuInfo.Wnd = Window->hSelf;
hNewMenu = co_IntLoadSysMenuTemplate();
- if(!NewMenu)
+ if(!hNewMenu)
{
IntReleaseMenuObject(SysMenu);
UserDestroyMenu(hSysMenu);