* Remove some useless asserts considering cLockObj is DWORD.

svn path=/trunk/; revision=53527
This commit is contained in:
Amine Khaldi 2011-09-02 09:23:20 +00:00
parent 6d62252f5a
commit ff2b2aaa36
3 changed files with 2 additions and 13 deletions

View file

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

View file

@ -93,8 +93,6 @@ UserGetMonitorObject(IN HMONITOR hMonitor)
return NULL;
}
ASSERT(Monitor->head.cLockObj >= 0);
return Monitor;
}

View file

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