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
a4373db6
Commit
a4373db6
authored
Jul 05, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Add a few more tests for registry path names.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aca2cac6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
1 deletion
+43
-1
reg.c
dlls/ntdll/tests/reg.c
+43
-1
No files found.
dlls/ntdll/tests/reg.c
View file @
a4373db6
...
...
@@ -412,6 +412,12 @@ static void test_NtOpenKey(void)
ok
(
status
==
STATUS_OBJECT_TYPE_MISMATCH
,
"NtOpenKey failed: 0x%08lx
\n
"
,
status
);
pRtlFreeUnicodeString
(
&
str
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"
\\\\\\
"
);
status
=
pNtOpenKey
(
&
key
,
KEY_READ
,
&
attr
);
todo_wine
ok
(
status
==
STATUS_OBJECT_NAME_INVALID
,
"NtOpenKey failed: 0x%08lx
\n
"
,
status
);
pRtlFreeUnicodeString
(
&
str
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"
\\
Registry"
);
status
=
pNtOpenKey
(
&
key
,
KEY_READ
,
&
attr
);
todo_wine
...
...
@@ -425,6 +431,13 @@ static void test_NtOpenKey(void)
pNtClose
(
key
);
pRtlFreeUnicodeString
(
&
str
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"
\\
Registry
\\\\
"
);
status
=
pNtOpenKey
(
&
key
,
KEY_READ
,
&
attr
);
todo_wine
ok
(
status
==
STATUS_SUCCESS
,
"NtOpenKey failed: 0x%08lx
\n
"
,
status
);
pNtClose
(
key
);
pRtlFreeUnicodeString
(
&
str
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"
\\
Foobar"
);
status
=
pNtOpenKey
(
&
key
,
KEY_READ
,
&
attr
);
todo_wine
...
...
@@ -493,7 +506,7 @@ static void test_NtCreateKey(void)
{
/*Create WineTest*/
OBJECT_ATTRIBUTES
attr
;
HANDLE
key
,
subkey
;
HANDLE
key
,
subkey
,
subkey2
;
ACCESS_MASK
am
=
GENERIC_ALL
;
NTSTATUS
status
;
UNICODE_STRING
str
;
...
...
@@ -545,6 +558,11 @@ static void test_NtCreateKey(void)
ok
(
status
==
STATUS_OBJECT_NAME_NOT_FOUND
,
"NtCreateKey failed: 0x%08lx
\n
"
,
status
);
pRtlFreeUnicodeString
(
&
str
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"test
\\\\
subkey"
);
status
=
pNtCreateKey
(
&
subkey
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_OBJECT_NAME_NOT_FOUND
,
"NtCreateKey failed: 0x%08lx
\n
"
,
status
);
pRtlFreeUnicodeString
(
&
str
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"test
\\
subkey
\\
"
);
status
=
pNtCreateKey
(
&
subkey
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_OBJECT_NAME_NOT_FOUND
,
"NtCreateKey failed: 0x%08lx
\n
"
,
status
);
...
...
@@ -553,10 +571,26 @@ static void test_NtCreateKey(void)
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"test_subkey
\\
"
);
status
=
pNtCreateKey
(
&
subkey
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_SUCCESS
,
"NtCreateKey failed: 0x%08lx
\n
"
,
status
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"test_subkey
\\
"
);
status
=
pNtCreateKey
(
&
subkey
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_SUCCESS
,
"NtCreateKey failed: 0x%08lx
\n
"
,
status
);
pNtDeleteKey
(
subkey
);
pNtClose
(
subkey
);
pRtlFreeUnicodeString
(
&
str
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"test_subkey2
\\\\
"
);
status
=
pNtCreateKey
(
&
subkey
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_SUCCESS
,
"NtCreateKey failed: 0x%08lx
\n
"
,
status
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"test_subkey2
\\\\
test
\\\\
"
);
status
=
pNtCreateKey
(
&
subkey2
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_SUCCESS
,
"NtCreateKey failed: 0x%08lx
\n
"
,
status
);
pRtlFreeUnicodeString
(
&
str
);
pNtDeleteKey
(
subkey2
);
pNtClose
(
subkey2
);
pNtDeleteKey
(
subkey
);
pNtClose
(
subkey
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"test_subkey"
);
status
=
pNtCreateKey
(
&
subkey
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_SUCCESS
,
"NtCreateKey failed: 0x%08lx
\n
"
,
status
);
...
...
@@ -594,6 +628,14 @@ static void test_NtCreateKey(void)
if
(
!
status
)
pNtClose
(
subkey
);
pRtlFreeUnicodeString
(
&
str
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"
\\
Registry
\\\\
"
);
status
=
pNtCreateKey
(
&
subkey
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
todo_wine
ok
(
status
==
STATUS_SUCCESS
||
status
==
STATUS_ACCESS_DENIED
,
"NtCreateKey failed: 0x%08lx
\n
"
,
status
);
if
(
!
status
)
pNtClose
(
subkey
);
pRtlFreeUnicodeString
(
&
str
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"
\\
Foobar"
);
status
=
pNtCreateKey
(
&
subkey
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
todo_wine
...
...
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