ntdll/tests: Skip some tests if not allowed to modify image file execution options.
Francois Gouget
fgouget at free.fr
Sun Sep 18 12:41:27 CDT 2011
---
On Windows 7, if not running the tests with elevated privileges some
registry keys/values cannot be modified. This fixes the test on my
Windows 7 VM.
dlls/ntdll/tests/reg.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/tests/reg.c b/dlls/ntdll/tests/reg.c
index 8f44a1d..5ca14eb 100644
--- a/dlls/ntdll/tests/reg.c
+++ b/dlls/ntdll/tests/reg.c
@@ -1198,6 +1198,11 @@ static void test_redirection(void)
pRtlInitUnicodeString( &str, classes64W );
status = pNtCreateKey( &key64, KEY_WOW64_64KEY | KEY_ALL_ACCESS, &attr, 0, 0, 0, 0 );
+ if (status == STATUS_ACCESS_DENIED)
+ {
+ skip("Not authorized to modify the Classes key\n");
+ return;
+ }
ok( status == STATUS_SUCCESS, "NtCreateKey failed: 0x%08x\n", status );
pRtlInitUnicodeString( &str, classes32W );
--
1.7.5.4
More information about the wine-patches
mailing list