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
31ee0b30
Commit
31ee0b30
authored
Nov 30, 2022
by
Sven Baars
Committed by
Alexandre Julliard
Mar 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Always try to open the Wow6432Node in open_key().
parent
0da843f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
registry.c
dlls/kernelbase/registry.c
+5
-8
No files found.
dlls/kernelbase/registry.c
View file @
31ee0b30
...
...
@@ -226,7 +226,6 @@ static NTSTATUS open_key( HKEY *retkey, HKEY root, UNICODE_STRING name, DWORD op
{
OBJECT_ATTRIBUTES
attr
;
NTSTATUS
status
;
BOOL
force_wow32
=
is_win64
&&
(
access
&
KEY_WOW64_32KEY
);
HANDLE
subkey
;
WCHAR
*
buffer
=
name
.
Buffer
;
DWORD
i
,
len
=
name
.
Length
/
sizeof
(
WCHAR
);
...
...
@@ -240,7 +239,7 @@ static NTSTATUS open_key( HKEY *retkey, HKEY root, UNICODE_STRING name, DWORD op
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityQualityOfService
=
NULL
;
if
(
!
force_wow32
)
if
(
!
(
is_win64
&&
(
access
&
KEY_WOW64_32KEY
))
)
{
if
(
options
&
REG_OPTION_OPEN_LINK
)
attr
.
Attributes
|=
OBJ_OPENLINK
;
status
=
NtOpenKeyEx
(
(
HANDLE
*
)
retkey
,
access
,
&
attr
,
options
);
...
...
@@ -278,16 +277,14 @@ static NTSTATUS open_key( HKEY *retkey, HKEY root, UNICODE_STRING name, DWORD op
buffer
+=
i
;
len
-=
i
;
if
(
force_wow32
)
name
.
Buffer
=
buffer
;
name
.
Length
=
len
*
sizeof
(
WCHAR
);
if
(
!
is_wow6432node
(
&
name
))
{
name
.
Buffer
=
buffer
;
name
.
Length
=
len
*
sizeof
(
WCHAR
);
if
(
is_wow6432node
(
&
name
))
force_wow32
=
FALSE
;
else
if
((
subkey
=
open_wow6432node
(
attr
.
RootDirectory
)))
if
((
subkey
=
open_wow6432node
(
attr
.
RootDirectory
)))
{
NtClose
(
attr
.
RootDirectory
);
attr
.
RootDirectory
=
subkey
;
force_wow32
=
FALSE
;
}
}
}
...
...
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