Francois Gouget : shell32/tests: Create_test_association() should either succeed or fail due to insufficient permissions.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jan 12 12:15:22 CST 2016


Module: wine
Branch: master
Commit: 201de16e30aa8101d8468c87fed69c94ae69cd75
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=201de16e30aa8101d8468c87fed69c94ae69cd75

Author: Francois Gouget <fgouget at free.fr>
Date:   Mon Jan 11 02:18:28 2016 +0100

shell32/tests: Create_test_association() should either succeed or fail due to insufficient permissions.

Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/shell32/tests/shlexec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index 5dcda39..b765f7c 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -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;
 




More information about the wine-cvs mailing list