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
8bcb44a9
Commit
8bcb44a9
authored
Mar 31, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Also check syswow64 to determine if the prefix was initialized.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
23389127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
loader.c
dlls/ntdll/unix/loader.c
+12
-10
No files found.
dlls/ntdll/unix/loader.c
View file @
8bcb44a9
...
...
@@ -118,7 +118,6 @@ static char *argv0;
static
const
char
*
bin_dir
;
static
const
char
*
dll_dir
;
static
SIZE_T
dll_path_maxlen
;
static
BOOL
is_prefix_bootstrap
;
const
char
*
home_dir
=
NULL
;
const
char
*
data_dir
=
NULL
;
...
...
@@ -311,8 +310,6 @@ static void set_config_dir(void)
static
void
init_paths
(
char
*
argv
[]
)
{
Dl_info
info
;
struct
stat
st
;
char
*
ntdll
;
argv0
=
strdup
(
argv
[
0
]
);
...
...
@@ -335,10 +332,6 @@ static void init_paths( char *argv[] )
set_dll_path
();
set_home_dir
();
set_config_dir
();
ntdll
=
build_path
(
config_dir
,
"dosdevices/c:/windows/system32/ntdll.dll"
);
is_prefix_bootstrap
=
stat
(
ntdll
,
&
st
)
==
-
1
;
free
(
ntdll
);
}
...
...
@@ -1437,9 +1430,10 @@ BOOL is_builtin_path( const UNICODE_STRING *path, WORD *machine )
{
static
const
WCHAR
wow64W
[]
=
{
'\\'
,
'?'
,
'?'
,
'\\'
,
'c'
,
':'
,
'\\'
,
'w'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
's'
,
'y'
,
's'
,
'w'
,
'o'
,
'w'
,
'6'
,
'4'
};
BOOL
is_prefix_bootstrap
;
unsigned
int
len
;
if
(
!
is_prefix_bootstrap
)
return
FALSE
;
struct
stat
st
;
char
*
ntdll
;
*
machine
=
current_machine
;
if
(
path
->
Length
>
wcslen
(
system_dir
)
*
sizeof
(
WCHAR
)
&&
...
...
@@ -1464,7 +1458,15 @@ found:
len
=
wcslen
(
system_dir
);
while
(
len
<
path
->
Length
/
sizeof
(
WCHAR
)
&&
path
->
Buffer
[
len
]
==
'\\'
)
len
++
;
while
(
len
<
path
->
Length
/
sizeof
(
WCHAR
)
&&
path
->
Buffer
[
len
]
!=
'\\'
)
len
++
;
return
len
==
path
->
Length
/
sizeof
(
WCHAR
);
if
(
len
!=
path
->
Length
/
sizeof
(
WCHAR
))
return
FALSE
;
/* if the corresponding ntdll exists, don't fake the existence of the builtin */
ntdll
=
build_path
(
config_dir
,
*
machine
==
IMAGE_FILE_MACHINE_I386
?
"dosdevices/c:/windows/syswow64/ntdll.dll"
:
"dosdevices/c:/windows/system32/ntdll.dll"
);
is_prefix_bootstrap
=
stat
(
ntdll
,
&
st
)
==
-
1
;
free
(
ntdll
);
return
is_prefix_bootstrap
;
}
...
...
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