user32/tests: GetMenuItemCount returns INT so check for -1 (Coverity 542).

This commit is contained in:
Aric Stewart 2008-10-02 07:52:55 -05:00 committed by Alexandre Julliard
parent 6aa6fc8a46
commit a7e48d7d98
1 changed files with 2 additions and 1 deletions

View File

@ -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++)
{