mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:26:10 +00:00
ole32/tests: Fixed CoGetPSClsid() test failures when running on limited account.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2a1e856bd9
commit
22ef1c7e2a
1 changed files with 8 additions and 0 deletions
|
@ -1293,6 +1293,12 @@ static void test_CoGetPSClsid(void)
|
|||
ok(!res, "RegCreateKeyEx returned %d\n", res);
|
||||
res = RegCreateKeyExA(hkey_iface, clsidDeadBeef,
|
||||
0, NULL, 0, KEY_ALL_ACCESS | opposite, NULL, &hkey, NULL);
|
||||
if (res == ERROR_ACCESS_DENIED)
|
||||
{
|
||||
win_skip("Failed to create a key, skipping some of CoGetPSClsid() tests\n");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
ok(!res, "RegCreateKeyEx returned %d\n", res);
|
||||
res = RegCreateKeyExA(hkey, "ProxyStubClsid32",
|
||||
0, NULL, 0, KEY_ALL_ACCESS | opposite, NULL, &hkey_psclsid, NULL);
|
||||
|
@ -1310,6 +1316,8 @@ static void test_CoGetPSClsid(void)
|
|||
RegCloseKey(hkey);
|
||||
res = pRegDeleteKeyExA(hkey_iface, clsidDeadBeef, opposite, 0);
|
||||
ok(!res, "RegDeleteKeyEx returned %d\n", res);
|
||||
|
||||
cleanup:
|
||||
RegCloseKey(hkey_iface);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue