From ff2b2aaa361ff12fe5fc63f0ea13fb26ec184c1a Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Fri, 2 Sep 2011 09:23:20 +0000 Subject: [PATCH] [WIN32K] * Remove some useless asserts considering cLockObj is DWORD. svn path=/trunk/; revision=53527 --- reactos/subsystems/win32/win32k/ntuser/menu.c | 6 +----- reactos/subsystems/win32/win32k/ntuser/monitor.c | 2 -- reactos/subsystems/win32/win32k/ntuser/window.c | 7 +------ 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/menu.c b/reactos/subsystems/win32/win32k/ntuser/menu.c index 092a58451d7..d9648a53eea 100644 --- a/reactos/subsystems/win32/win32k/ntuser/menu.c +++ b/reactos/subsystems/win32/win32k/ntuser/menu.c @@ -74,7 +74,6 @@ PMENU_OBJECT FASTCALL UserGetMenuObject(HMENU hMenu) return NULL; } - ASSERT(Menu->head.cLockObj >= 0); return Menu; } @@ -137,11 +136,8 @@ IntGetMenuObject(HMENU hMenu) { PMENU_OBJECT Menu = UserGetMenuObject(hMenu); if (Menu) - { - ASSERT(Menu->head.cLockObj >= 0); - Menu->head.cLockObj++; - } + return Menu; } diff --git a/reactos/subsystems/win32/win32k/ntuser/monitor.c b/reactos/subsystems/win32/win32k/ntuser/monitor.c index 675ca7db64d..4f0f19d5f34 100644 --- a/reactos/subsystems/win32/win32k/ntuser/monitor.c +++ b/reactos/subsystems/win32/win32k/ntuser/monitor.c @@ -93,8 +93,6 @@ UserGetMonitorObject(IN HMONITOR hMonitor) return NULL; } - ASSERT(Monitor->head.cLockObj >= 0); - return Monitor; } diff --git a/reactos/subsystems/win32/win32k/ntuser/window.c b/reactos/subsystems/win32/win32k/ntuser/window.c index 5956a44e150..f7b2d0940a9 100644 --- a/reactos/subsystems/win32/win32k/ntuser/window.c +++ b/reactos/subsystems/win32/win32k/ntuser/window.c @@ -61,11 +61,8 @@ PWND FASTCALL IntGetWindowObject(HWND hWnd) Window = UserGetWindowObject(hWnd); if (Window) - { - ASSERT(Window->head.cLockObj >= 0); - Window->head.cLockObj++; - } + return Window; } @@ -87,8 +84,6 @@ PWND FASTCALL UserGetWindowObject(HWND hWnd) return NULL; } - ASSERT(Window->head.cLockObj >= 0); - return Window; }