Commit 201de16e authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

shell32/tests: Create_test_association() should either succeed or fail due to…

shell32/tests: Create_test_association() should either succeed or fail due to insufficient permissions. Signed-off-by: 's avatarFrancois Gouget <fgouget@free.fr> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 0a867de2
......@@ -251,6 +251,8 @@ static BOOL create_test_association(const char* extension)
sprintf(class, "shlexec%s", extension);
rc=RegCreateKeyExA(HKEY_CLASSES_ROOT, extension, 0, NULL, 0, KEY_SET_VALUE,
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)
return FALSE;
......
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