Module: wine Branch: master Commit: cbff1b9540a46853a1700e8c895a57dade69e16d URL: https://source.winehq.org/git/wine.git/?a=commit;h=cbff1b9540a46853a1700e8c8...
Author: Francois Gouget fgouget@codeweavers.com Date: Mon Dec 14 16:06:06 2020 +0100
ntdll/tests: Skip some registry tests when missing elevated privileges.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 );