shell32/tests: Fix a test failure on a default Windows 7 system.
This commit is contained in:
parent
1d4fcc0270
commit
9233215ae7
|
@ -647,8 +647,12 @@ static void test_CallForAttributes(void)
|
|||
* key. So the test will return at this point, if run on wine.
|
||||
*/
|
||||
lResult = RegOpenKeyExW(HKEY_CLASSES_ROOT, wszMyDocumentsKey, 0, KEY_WRITE|KEY_READ, &hKey);
|
||||
ok (lResult == ERROR_SUCCESS, "RegOpenKeyEx failed! result: %08x\n", lResult);
|
||||
ok (lResult == ERROR_SUCCESS ||
|
||||
lResult == ERROR_ACCESS_DENIED,
|
||||
"RegOpenKeyEx failed! result: %08x\n", lResult);
|
||||
if (lResult != ERROR_SUCCESS) {
|
||||
if (lResult == ERROR_ACCESS_DENIED)
|
||||
skip("Not enough rights to open the registry key\n");
|
||||
IMalloc_Free(ppM, pidlMyDocuments);
|
||||
IShellFolder_Release(psfDesktop);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue