Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
072b7370
Commit
072b7370
authored
Oct 27, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Specify the full application path when starting wineboot.exe.
parent
aadf703f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
process.c
dlls/kernel32/process.c
+7
-5
No files found.
dlls/kernel32/process.c
View file @
072b7370
...
...
@@ -917,6 +917,7 @@ static void start_wineboot( HANDLE handles[2] )
PROCESS_INFORMATION
pi
;
DWORD
type
;
void
*
redir
;
WCHAR
app
[
MAX_PATH
];
WCHAR
cmdline
[
MAX_PATH
+
(
sizeof
(
wineboot
)
+
sizeof
(
args
))
/
sizeof
(
WCHAR
)];
memset
(
&
si
,
0
,
sizeof
(
si
)
);
...
...
@@ -926,11 +927,11 @@ static void start_wineboot( HANDLE handles[2] )
si
.
hStdOutput
=
0
;
si
.
hStdError
=
GetStdHandle
(
STD_ERROR_HANDLE
);
GetSystemDirectoryW
(
cmdline
,
MAX_PATH
);
lstrcatW
(
cmdline
,
wineboot
);
GetSystemDirectoryW
(
app
,
MAX_PATH
-
sizeof
(
wineboot
)
/
sizeof
(
WCHAR
)
);
lstrcatW
(
app
,
wineboot
);
Wow64DisableWow64FsRedirection
(
&
redir
);
if
(
GetBinaryTypeW
(
cmdline
,
&
type
)
&&
type
!=
expected_type
)
if
(
GetBinaryTypeW
(
app
,
&
type
)
&&
type
!=
expected_type
)
{
if
(
type
==
SCS_64BIT_BINARY
)
MESSAGE
(
"wine: '%s' is a 64-bit prefix, it cannot be used with 32-bit Wine.
\n
"
,
...
...
@@ -941,8 +942,9 @@ static void start_wineboot( HANDLE handles[2] )
ExitProcess
(
1
);
}
lstrcatW
(
cmdline
,
args
);
if
(
CreateProcessW
(
NULL
,
cmdline
,
NULL
,
NULL
,
FALSE
,
DETACHED_PROCESS
,
NULL
,
NULL
,
&
si
,
&
pi
))
strcpyW
(
cmdline
,
app
);
strcatW
(
cmdline
,
args
);
if
(
CreateProcessW
(
app
,
cmdline
,
NULL
,
NULL
,
FALSE
,
DETACHED_PROCESS
,
NULL
,
NULL
,
&
si
,
&
pi
))
{
TRACE
(
"started wineboot pid %04x tid %04x
\n
"
,
pi
.
dwProcessId
,
pi
.
dwThreadId
);
CloseHandle
(
pi
.
hThread
);
...
...
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