Module: wine Branch: master Commit: 39b2c1eb50dad989ce319170ef27a0420894f462 URL: http://source.winehq.org/git/wine.git/?a=commit;h=39b2c1eb50dad989ce319170ef... Author: Aric Stewart <aric(a)codeweavers.com> Date: Fri Oct 3 09:55:57 2008 -0500 ole32: Handle GetMenuItemCount returning -1 by changing UINT to INT (Coverity 228). --- dlls/ole32/ole2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index 5cee7a1..bdbf6da 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 );