From 39b2c1eb50dad989ce319170ef27a0420894f462 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Fri, 3 Oct 2008 09:55:57 -0500 Subject: [PATCH] ole32: Handle GetMenuItemCount returning -1 by changing UINT to INT (Coverity 228). --- dlls/ole32/ole2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index 5cee7a1e9fe..bdbf6da7861 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -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 );