From bcb869a342a02f8ffe256ba8cf811630b0e0c0c8 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 1 Jul 2010 13:21:34 +0200 Subject: [PATCH] msi/tests: Reset the enumeration index for MsiEnumProducts before testing it. --- dlls/msi/tests/msi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/msi/tests/msi.c b/dlls/msi/tests/msi.c index 90a357b705b..b377320131e 100644 --- a/dlls/msi/tests/msi.c +++ b/dlls/msi/tests/msi.c @@ -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);