Commit a7e48d7d authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

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

parent 6aa6fc8a
......@@ -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++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment