From 59c7cc4bc9215721b7aca21da904ad78e173c394 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Fri, 15 Aug 2003 11:11:02 +0000 Subject: [PATCH] fixed small bug in NtUserSetMenu() svn path=/trunk/; revision=5583 --- reactos/subsys/win32k/ntuser/window.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/window.c b/reactos/subsys/win32k/ntuser/window.c index b21e4517416..112b9052404 100644 --- a/reactos/subsys/win32k/ntuser/window.c +++ b/reactos/subsys/win32k/ntuser/window.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: window.c,v 1.93 2003/08/15 10:53:16 rcampbell Exp $ +/* $Id: window.c,v 1.94 2003/08/15 11:11:02 weiden Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -2551,6 +2551,8 @@ NtUserSetMenu( } WindowObject->Menu = hMenu; + + W32kReleaseMenuObject(MenuObject); } else { @@ -2558,7 +2560,6 @@ NtUserSetMenu( WindowObject->Menu = 0; } - W32kReleaseMenuObject(MenuObject); W32kReleaseWindowObject(WindowObject); /* FIXME (from wine)