shell32/tests: Fix a test failure on a default Windows 7 system.

This commit is contained in:
Paul Vriens 2009-12-11 12:56:01 +01:00 committed by Alexandre Julliard
parent 1d4fcc0270
commit 9233215ae7
1 changed files with 5 additions and 1 deletions

View File

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