[PATCH] ntdll/tests: Skip some registry tests when missing elevated privileges.

Francois Gouget fgouget at codeweavers.com
Mon Dec 14 09:06:06 CST 2020


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 dlls/ntdll/tests/reg.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/ntdll/tests/reg.c b/dlls/ntdll/tests/reg.c
index 51562786e99..24832312460 100644
--- a/dlls/ntdll/tests/reg.c
+++ b/dlls/ntdll/tests/reg.c
@@ -1458,6 +1458,11 @@ static void test_redirection(void)
 
     pRtlInitUnicodeString( &str, wine64W );
     status = pNtCreateKey( &root64, KEY_WOW64_64KEY | KEY_ALL_ACCESS, &attr, 0, 0, 0, 0 );
+    if (status == STATUS_ACCESS_DENIED)
+    {
+        skip("Not authorized to modify KEY_WOW64_64KEY, no redirection\n");
+        return;
+    }
     ok( status == STATUS_SUCCESS, "NtCreateKey failed: 0x%08x\n", status );
 
     pRtlInitUnicodeString( &str, wine32W );
-- 
2.20.1




More information about the wine-devel mailing list