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
eafdbdd1
Commit
eafdbdd1
authored
Nov 20, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Don't try to create the registry root.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dfe65ce1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
registry.c
dlls/advapi32/registry.c
+6
-0
No files found.
dlls/advapi32/registry.c
View file @
eafdbdd1
...
...
@@ -141,10 +141,16 @@ static NTSTATUS create_key( HKEY *retkey, ACCESS_MASK access, OBJECT_ATTRIBUTES
if
(
status
==
STATUS_OBJECT_NAME_NOT_FOUND
)
{
static
const
WCHAR
registry_root
[]
=
{
'\\'
,
'R'
,
'e'
,
'g'
,
'i'
,
's'
,
't'
,
'r'
,
'y'
,
'\\'
};
WCHAR
*
buffer
=
attr
->
ObjectName
->
Buffer
;
DWORD
attrs
,
pos
=
0
,
i
=
0
,
len
=
attr
->
ObjectName
->
Length
/
sizeof
(
WCHAR
);
UNICODE_STRING
str
;
/* don't try to create registry root */
if
(
!
attr
->
RootDirectory
&&
len
>
sizeof
(
registry_root
)
/
sizeof
(
WCHAR
)
&&
!
memicmpW
(
buffer
,
registry_root
,
sizeof
(
registry_root
)
/
sizeof
(
WCHAR
)))
i
+=
sizeof
(
registry_root
)
/
sizeof
(
WCHAR
);
while
(
i
<
len
&&
buffer
[
i
]
!=
'\\'
)
i
++
;
if
(
i
==
len
&&
!
force_wow32
)
return
status
;
...
...
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