shell32/tests: Create_test_association() should either succeed or fail due to insufficient permissions.
Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0a867de22d
commit
201de16e30
|
@ -251,6 +251,8 @@ static BOOL create_test_association(const char* extension)
|
||||||
sprintf(class, "shlexec%s", extension);
|
sprintf(class, "shlexec%s", extension);
|
||||||
rc=RegCreateKeyExA(HKEY_CLASSES_ROOT, extension, 0, NULL, 0, KEY_SET_VALUE,
|
rc=RegCreateKeyExA(HKEY_CLASSES_ROOT, extension, 0, NULL, 0, KEY_SET_VALUE,
|
||||||
NULL, &hkey, NULL);
|
NULL, &hkey, NULL);
|
||||||
|
ok(rc == ERROR_SUCCESS || rc == ERROR_ACCESS_DENIED,
|
||||||
|
"could not create association %s (rc=%d)\n", class, rc);
|
||||||
if (rc != ERROR_SUCCESS)
|
if (rc != ERROR_SUCCESS)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue