shell32/tests: Fix some test failures running with limited user.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-04-21 21:17:37 +03:00 committed by Alexandre Julliard
parent aa11dfa8fd
commit e89a7735c3
1 changed files with 6 additions and 0 deletions

View File

@ -150,6 +150,12 @@ static void test_IQueryAssociations_GetString(void)
int i = 0;
r = RegCreateKeyExW(HKEY_CLASSES_ROOT, test_extensionW, 0, NULL, 0, KEY_ALL_ACCESS, NULL, &test_extension_key, NULL);
if (r == ERROR_ACCESS_DENIED)
{
win_skip("Not enough permissions to create a test key.\n");
return;
}
ok(r == ERROR_SUCCESS, "RegCreateKeyExW(HKCR, \".test\") failed: 0x%lx\n", r);
r = RegSetValueExW(test_extension_key, NULL, 0, REG_SZ, (PBYTE)test_progidW, sizeof(test_progidW));
ok(r == ERROR_SUCCESS, "RegSetValueExW(HKCR\\.test, NULL, \"testfile\") failed: 0x%lx\n", r);