msi/tests: Reset the enumeration index for MsiEnumProducts before testing it.

This commit is contained in:
Alexandre Julliard 2010-07-01 13:21:34 +02:00
parent 415bb3c5a0
commit bcb869a342
1 changed files with 3 additions and 0 deletions

View File

@ -11298,6 +11298,9 @@ static void test_MsiEnumProducts(void)
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
index = 0;
r = MsiEnumProductsA(index, guid);
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r);
r = MsiEnumProductsA(index, NULL);
ok(r == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %u\n", r);