msi/tests: Skip a test if the current user has insufficient rights.
This commit is contained in:
parent
3e37b27d37
commit
9686c95749
|
@ -297,6 +297,13 @@ static void test_null(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
r = RegSetValueA(hkey, NULL, REG_SZ, "test", strlen("test"));
|
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);
|
ok( r == ERROR_SUCCESS, "wrong error %d\n", r);
|
||||||
|
|
||||||
r = MsiGetProductInfoA("", "", NULL, NULL);
|
r = MsiGetProductInfoA("", "", NULL, NULL);
|
||||||
|
|
Loading…
Reference in New Issue