diff --git a/dlls/msi/tests/msi.c b/dlls/msi/tests/msi.c index 4161f8d4ad4..8de9372dce3 100644 --- a/dlls/msi/tests/msi.c +++ b/dlls/msi/tests/msi.c @@ -106,12 +106,13 @@ static void test_null(void) HKEY hkey; DWORD dwType, cbData; LPBYTE lpData = NULL; + INSTALLSTATE state; r = pMsiOpenPackageExW(NULL, 0, &hpkg); ok( r == ERROR_INVALID_PARAMETER,"wrong error\n"); - r = MsiQueryProductStateW(NULL); - ok( r == INSTALLSTATE_INVALIDARG, "wrong return\n"); + state = MsiQueryProductStateW(NULL); + ok( state == INSTALLSTATE_INVALIDARG, "wrong return\n"); r = MsiEnumFeaturesW(NULL,0,NULL,NULL); ok( r == ERROR_INVALID_PARAMETER,"wrong error\n");