mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[WIN32K]
* Remove some useless asserts considering cLockObj is DWORD. svn path=/trunk/; revision=53527
This commit is contained in:
parent
6d62252f5a
commit
ff2b2aaa36
3 changed files with 2 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -93,8 +93,6 @@ UserGetMonitorObject(IN HMONITOR hMonitor)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
ASSERT(Monitor->head.cLockObj >= 0);
|
||||
|
||||
return Monitor;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue