[ros-diffs] [gvg] 17790: Fix some object/handle victims. Fixes bug 765.

gvg at svn.reactos.com gvg at svn.reactos.com
Sun Sep 11 01:02:04 CEST 2005


Fix some object/handle victims. Fixes bug 765.
Modified: trunk/reactos/subsys/win32k/ntuser/window.c
  _____  

Modified: trunk/reactos/subsys/win32k/ntuser/window.c
--- 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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050911/87d9f40d/attachment.html


More information about the Ros-diffs mailing list