Commit 9686c957 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

parent 3e37b27d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment