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; }