ole32: Handle GetMenuItemCount returning -1 by changing UINT to INT (Coverity 228).
This commit is contained in:
parent
4b6cc6e3fd
commit
39b2c1eb50
|
@ -1299,7 +1299,7 @@ static OleMenuHookItem * OLEMenu_IsHookInstalled( DWORD tid )
|
||||||
*/
|
*/
|
||||||
static BOOL OLEMenu_FindMainMenuIndex( HMENU hMainMenu, HMENU hPopupMenu, UINT *pnPos )
|
static BOOL OLEMenu_FindMainMenuIndex( HMENU hMainMenu, HMENU hPopupMenu, UINT *pnPos )
|
||||||
{
|
{
|
||||||
UINT i, nItems;
|
INT i, nItems;
|
||||||
|
|
||||||
nItems = GetMenuItemCount( hMainMenu );
|
nItems = GetMenuItemCount( hMainMenu );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue