ole32: Handle GetMenuItemCount returning -1 by changing UINT to INT (Coverity 228).

This commit is contained in:
Aric Stewart 2008-10-03 09:55:57 -05:00 committed by Alexandre Julliard
parent 4b6cc6e3fd
commit 39b2c1eb50
1 changed files with 1 additions and 1 deletions

View File

@ -1299,7 +1299,7 @@ static OleMenuHookItem * OLEMenu_IsHookInstalled( DWORD tid )
*/
static BOOL OLEMenu_FindMainMenuIndex( HMENU hMainMenu, HMENU hPopupMenu, UINT *pnPos )
{
UINT i, nItems;
INT i, nItems;
nItems = GetMenuItemCount( hMainMenu );