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
75b1db42
Commit
75b1db42
authored
May 05, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Return the full path to start.exe in load_start_exe().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
87b7132b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
loader.c
dlls/ntdll/unix/loader.c
+4
-6
No files found.
dlls/ntdll/unix/loader.c
View file @
75b1db42
...
...
@@ -1625,22 +1625,20 @@ failed:
NTSTATUS
load_start_exe
(
WCHAR
**
image
,
void
**
module
)
{
static
const
WCHAR
startW
[]
=
{
's'
,
't'
,
'a'
,
'r'
,
't'
,
'.'
,
'e'
,
'x'
,
'e'
,
0
};
WCHAR
buffer
[
sizeof
(
"
\\
??
\\
C:
\\
windows
\\
system32
\\
start.exe"
)];
UNICODE_STRING
nt_name
;
NTSTATUS
status
;
SIZE_T
size
;
wcscpy
(
buffer
,
get_machine_wow64_dir
(
current_machine
));
wcscat
(
buffer
,
startW
);
init_unicode_string
(
&
nt_name
,
buffer
);
*
image
=
malloc
(
sizeof
(
"
\\
??
\\
C:
\\
windows
\\
system32
\\
start.exe"
)
*
sizeof
(
WCHAR
)
);
wcscpy
(
*
image
,
get_machine_wow64_dir
(
current_machine
));
wcscat
(
*
image
,
startW
);
init_unicode_string
(
&
nt_name
,
*
image
);
status
=
find_builtin_dll
(
&
nt_name
,
module
,
&
size
,
&
main_image_info
,
current_machine
,
FALSE
);
if
(
status
)
{
MESSAGE
(
"wine: failed to load start.exe: %x
\n
"
,
status
);
NtTerminateProcess
(
GetCurrentProcess
(),
status
);
}
*
image
=
malloc
(
sizeof
(
startW
)
);
memcpy
(
*
image
,
startW
,
sizeof
(
startW
)
);
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