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:
Francois Gouget 2016-01-11 02:18:28 +01:00 committed by Alexandre Julliard
parent 0a867de22d
commit 201de16e30
1 changed files with 2 additions and 0 deletions

View File

@ -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;