user32/tests: GetMenuItemCount returns INT so check for -1 (Coverity 542).
This commit is contained in:
parent
6aa6fc8a46
commit
a7e48d7d98
|
@ -2005,9 +2005,10 @@ static void test_menu_hilitemenuitem( void )
|
|||
static void check_menu_items(HMENU hmenu, UINT checked_cmd, UINT checked_type,
|
||||
UINT checked_state)
|
||||
{
|
||||
UINT i, count;
|
||||
INT i, count;
|
||||
|
||||
count = GetMenuItemCount(hmenu);
|
||||
ok (count != -1, "GetMenuItemCount returned -1\n");
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue