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
95ddb757
Commit
95ddb757
authored
Jul 05, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix returned error for NtCreateKey with empty name.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a4373db6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
reg.c
dlls/ntdll/tests/reg.c
+0
-1
registry.c
dlls/ntdll/unix/registry.c
+1
-0
No files found.
dlls/ntdll/tests/reg.c
View file @
95ddb757
...
...
@@ -603,7 +603,6 @@ static void test_NtCreateKey(void)
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
""
);
status
=
pNtCreateKey
(
&
subkey
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
todo_wine
ok
(
status
==
STATUS_OBJECT_PATH_SYNTAX_BAD
,
"NtCreateKey failed: 0x%08lx
\n
"
,
status
);
pRtlFreeUnicodeString
(
&
str
);
...
...
dlls/ntdll/unix/registry.c
View file @
95ddb757
...
...
@@ -81,6 +81,7 @@ NTSTATUS WINAPI NtCreateKey( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRI
*
key
=
0
;
if
(
attr
->
Length
!=
sizeof
(
OBJECT_ATTRIBUTES
))
return
STATUS_INVALID_PARAMETER
;
if
(
!
attr
->
ObjectName
->
Length
&&
!
attr
->
RootDirectory
)
return
STATUS_OBJECT_PATH_SYNTAX_BAD
;
if
((
ret
=
alloc_object_attributes
(
attr
,
&
objattr
,
&
len
)))
return
ret
;
TRACE
(
"(%p,%s,%s,%x,%x,%p)
\n
"
,
attr
->
RootDirectory
,
debugstr_us
(
attr
->
ObjectName
),
...
...
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