msi/tests: Skip some tests if we don't have enough rights.

This commit is contained in:
Paul Vriens 2009-01-07 15:53:19 +01:00 committed by Alexandre Julliard
parent cb0113ec53
commit bb7efb1deb
1 changed files with 7 additions and 0 deletions

View File

@ -9585,6 +9585,13 @@ static void test_MsiGetProductProperty(void)
lstrcatA(keypath, prod_squashed);
res = RegCreateKeyA(HKEY_LOCAL_MACHINE, keypath, &userkey);
if (res == ERROR_ACCESS_DENIED)
{
skip("Not enough rights to perform tests\n");
RegDeleteKeyA(prodkey, "");
RegCloseKey(prodkey);
return;
}
ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
res = RegCreateKeyA(userkey, "InstallProperties", &props);