[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: ntdll/tests: Test NtOpenKey with zero access.
From: Thomas Faber <thomas.faber () reactos ! org>
Date: 2016-02-29 17:04:53
Message-ID: 56D47A35.7080005 () reactos ! org
[Download RAW message or body]
["0001-ntdll-tests-Test-NtOpenKey-with-zero-access.patch" (text/x-diff)]
From afb9cff3dc450960d2b9f8844e2788a8ac8706b8 Mon Sep 17 00:00:00 2001
From: Thomas Faber <thomas.faber@reactos.org>
Date: Mon, 29 Feb 2016 17:09:48 +0100
Subject: ntdll/tests: Test NtOpenKey with zero access.
Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
---
dlls/ntdll/tests/reg.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dlls/ntdll/tests/reg.c b/dlls/ntdll/tests/reg.c
index d00a496..3738301 100644
--- a/dlls/ntdll/tests/reg.c
+++ b/dlls/ntdll/tests/reg.c
@@ -362,6 +362,13 @@ static void test_NtOpenKey(void)
status = pNtOpenKey(&key, am, &attr);
ok(status == STATUS_INVALID_PARAMETER, "Expected STATUS_INVALID_PARAMETER, got: 0x%08x\n", status);
+ /* Zero accessmask */
+ attr.Length = sizeof(attr);
+ status = pNtOpenKey(&key, 0, &attr);
+todo_wine
+ ok(status == STATUS_ACCESS_DENIED, "Expected STATUS_ACCESS_DENIED, got: 0x%08x\n", status);
+ if (status == STATUS_SUCCESS) NtClose(key);
+
/* Calling without parent key requres full registry path. */
pRtlCreateUnicodeStringFromAsciiz( &str, "Machine" );
InitializeObjectAttributes(&attr, &str, 0, 0, 0);
--
2.7.0.windows.1
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic