Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5441f835
Commit
5441f835
authored
Feb 29, 2016
by
Thomas Faber
Committed by
Alexandre Julliard
Mar 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Test NtOpenKey with zero access.
Signed-off-by:
Thomas Faber
<
thomas.faber@reactos.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bf6db74f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
reg.c
dlls/ntdll/tests/reg.c
+7
-0
No files found.
dlls/ntdll/tests/reg.c
View file @
5441f835
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment