msi/tests: Skip a test if the current user has insufficient rights.

This commit is contained in:
Hans Leidekker 2010-07-26 12:09:12 +02:00 committed by Alexandre Julliard
parent 3e37b27d37
commit 9686c95749
1 changed files with 7 additions and 0 deletions

View File

@ -297,6 +297,13 @@ static void test_null(void)
}
r = RegSetValueA(hkey, NULL, REG_SZ, "test", strlen("test"));
if (r == ERROR_ACCESS_DENIED)
{
skip("Not enough rights to perform tests\n");
HeapFree(GetProcessHeap(), 0, lpData);
RegCloseKey(hkey);
return;
}
ok( r == ERROR_SUCCESS, "wrong error %d\n", r);
r = MsiGetProductInfoA("", "", NULL, NULL);