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
26df0863
Commit
26df0863
authored
Nov 19, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Added more NtOpenKey tests.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
808c2d6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
reg.c
dlls/ntdll/tests/reg.c
+22
-0
No files found.
dlls/ntdll/tests/reg.c
View file @
26df0863
...
...
@@ -340,6 +340,7 @@ static void test_NtOpenKey(void)
NTSTATUS
status
;
OBJECT_ATTRIBUTES
attr
;
ACCESS_MASK
am
=
KEY_READ
;
UNICODE_STRING
str
;
/* All NULL */
status
=
pNtOpenKey
(
NULL
,
0
,
NULL
);
...
...
@@ -361,6 +362,27 @@ static void test_NtOpenKey(void)
status
=
pNtOpenKey
(
&
key
,
am
,
&
attr
);
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"Expected STATUS_INVALID_PARAMETER, got: 0x%08x
\n
"
,
status
);
/* Calling without parent key requres full registry path. */
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"Machine"
);
InitializeObjectAttributes
(
&
attr
,
&
str
,
0
,
0
,
0
);
status
=
pNtOpenKey
(
&
key
,
KEY_READ
,
&
attr
);
todo_wine
ok
(
status
==
STATUS_OBJECT_PATH_SYNTAX_BAD
,
"NtOpenKey Failed: 0x%08x
\n
"
,
status
);
if
(
!
status
)
pNtClose
(
key
);
/* Open is case sensitive unless OBJ_CASE_INSENSITIVE is specified. */
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"
\\
Registry
\\
Machine"
);
status
=
pNtOpenKey
(
&
key
,
KEY_READ
,
&
attr
);
todo_wine
ok
(
status
==
STATUS_OBJECT_PATH_NOT_FOUND
,
"NtOpenKey Failed: 0x%08x
\n
"
,
status
);
if
(
!
status
)
pNtClose
(
key
);
attr
.
Attributes
=
OBJ_CASE_INSENSITIVE
;
status
=
pNtOpenKey
(
&
key
,
KEY_READ
,
&
attr
);
ok
(
status
==
STATUS_SUCCESS
,
"NtOpenKey Failed: 0x%08x
\n
"
,
status
);
if
(
!
status
)
pNtClose
(
key
);
if
(
!
pNtOpenKeyEx
)
{
win_skip
(
"NtOpenKeyEx not available
\n
"
);
...
...
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