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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(Menu->head.cLockObj >= 0);
|
|
||||||
return Menu;
|
return Menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,11 +136,8 @@ IntGetMenuObject(HMENU hMenu)
|
||||||
{
|
{
|
||||||
PMENU_OBJECT Menu = UserGetMenuObject(hMenu);
|
PMENU_OBJECT Menu = UserGetMenuObject(hMenu);
|
||||||
if (Menu)
|
if (Menu)
|
||||||
{
|
|
||||||
ASSERT(Menu->head.cLockObj >= 0);
|
|
||||||
|
|
||||||
Menu->head.cLockObj++;
|
Menu->head.cLockObj++;
|
||||||
}
|
|
||||||
return Menu;
|
return Menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,8 +93,6 @@ UserGetMonitorObject(IN HMONITOR hMonitor)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(Monitor->head.cLockObj >= 0);
|
|
||||||
|
|
||||||
return Monitor;
|
return Monitor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -61,11 +61,8 @@ PWND FASTCALL IntGetWindowObject(HWND hWnd)
|
||||||
|
|
||||||
Window = UserGetWindowObject(hWnd);
|
Window = UserGetWindowObject(hWnd);
|
||||||
if (Window)
|
if (Window)
|
||||||
{
|
|
||||||
ASSERT(Window->head.cLockObj >= 0);
|
|
||||||
|
|
||||||
Window->head.cLockObj++;
|
Window->head.cLockObj++;
|
||||||
}
|
|
||||||
return Window;
|
return Window;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,8 +84,6 @@ PWND FASTCALL UserGetWindowObject(HWND hWnd)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(Window->head.cLockObj >= 0);
|
|
||||||
|
|
||||||
return Window;
|
return Window;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue