[PATCH 03/12] shell32/tests: create_test_association() should either succeed or fail due to insufficient permissions.

Francois Gouget fgouget at free.fr
Mon Jan 4 16:29:16 CST 2016


Signed-off-by: Francois Gouget <fgouget at free.fr>
---
 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 c393e40..be679d6 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -248,6 +248,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;
 
-- 
2.6.4




More information about the wine-patches mailing list