Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a31d0e6c
Commit
a31d0e6c
authored
Mar 09, 2023
by
Sven Baars
Committed by
Alexandre Julliard
Mar 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Pass the root key to open_key().
parent
8bdee1d2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
registry.c
dlls/kernelbase/registry.c
+4
-4
No files found.
dlls/kernelbase/registry.c
View file @
a31d0e6c
...
@@ -214,11 +214,11 @@ static NTSTATUS create_key( HKEY *retkey, ACCESS_MASK access, OBJECT_ATTRIBUTES
...
@@ -214,11 +214,11 @@ static NTSTATUS create_key( HKEY *retkey, ACCESS_MASK access, OBJECT_ATTRIBUTES
}
}
/* wrapper for NtOpenKeyEx to handle Wow6432 nodes */
/* wrapper for NtOpenKeyEx to handle Wow6432 nodes */
static
NTSTATUS
open_key
(
HKEY
*
retkey
,
DWORD
options
,
ACCESS_MASK
access
,
OBJECT_ATTRIBUTES
*
attr
)
static
NTSTATUS
open_key
(
HKEY
*
retkey
,
HKEY
root
,
DWORD
options
,
ACCESS_MASK
access
,
OBJECT_ATTRIBUTES
*
attr
)
{
{
NTSTATUS
status
;
NTSTATUS
status
;
BOOL
force_wow32
=
is_win64
&&
(
access
&
KEY_WOW64_32KEY
);
BOOL
force_wow32
=
is_win64
&&
(
access
&
KEY_WOW64_32KEY
);
HANDLE
subkey
,
root
=
attr
->
RootDirectory
;
HANDLE
subkey
;
WCHAR
*
buffer
=
attr
->
ObjectName
->
Buffer
;
WCHAR
*
buffer
=
attr
->
ObjectName
->
Buffer
;
DWORD
pos
=
0
,
i
=
0
,
len
=
attr
->
ObjectName
->
Length
/
sizeof
(
WCHAR
);
DWORD
pos
=
0
,
i
=
0
,
len
=
attr
->
ObjectName
->
Length
/
sizeof
(
WCHAR
);
UNICODE_STRING
str
;
UNICODE_STRING
str
;
...
@@ -537,7 +537,7 @@ LSTATUS WINAPI DECLSPEC_HOTPATCH RegOpenKeyExW( HKEY hkey, LPCWSTR name, DWORD o
...
@@ -537,7 +537,7 @@ LSTATUS WINAPI DECLSPEC_HOTPATCH RegOpenKeyExW( HKEY hkey, LPCWSTR name, DWORD o
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityQualityOfService
=
NULL
;
attr
.
SecurityQualityOfService
=
NULL
;
RtlInitUnicodeString
(
&
nameW
,
name
);
RtlInitUnicodeString
(
&
nameW
,
name
);
return
RtlNtStatusToDosError
(
open_key
(
retkey
,
options
,
access
,
&
attr
)
);
return
RtlNtStatusToDosError
(
open_key
(
retkey
,
hkey
,
options
,
access
,
&
attr
)
);
}
}
...
@@ -595,7 +595,7 @@ LSTATUS WINAPI DECLSPEC_HOTPATCH RegOpenKeyExA( HKEY hkey, LPCSTR name, DWORD op
...
@@ -595,7 +595,7 @@ LSTATUS WINAPI DECLSPEC_HOTPATCH RegOpenKeyExA( HKEY hkey, LPCSTR name, DWORD op
if
(
!
(
status
=
RtlAnsiStringToUnicodeString
(
&
NtCurrentTeb
()
->
StaticUnicodeString
,
if
(
!
(
status
=
RtlAnsiStringToUnicodeString
(
&
NtCurrentTeb
()
->
StaticUnicodeString
,
&
nameA
,
FALSE
)))
&
nameA
,
FALSE
)))
{
{
status
=
open_key
(
retkey
,
options
,
access
,
&
attr
);
status
=
open_key
(
retkey
,
hkey
,
options
,
access
,
&
attr
);
}
}
return
RtlNtStatusToDosError
(
status
);
return
RtlNtStatusToDosError
(
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