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
a4fcba60
Commit
a4fcba60
authored
Dec 04, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Call CreateProcess with CREATE_UNICODE_ENVIRONMENT flag in exec functions family.
Based on a patch by Ron Yorston.
parent
721c502d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
process.c
dlls/msvcrt/process.c
+3
-2
No files found.
dlls/msvcrt/process.c
View file @
a4fcba60
...
...
@@ -134,6 +134,7 @@ static MSVCRT_intptr_t msvcrt_spawn(int flags, const MSVCRT_wchar_t* exe, MSVCRT
STARTUPINFOW
si
;
PROCESS_INFORMATION
pi
;
MSVCRT_wchar_t
fullname
[
MAX_PATH
];
DWORD
create_flags
=
CREATE_UNICODE_ENVIRONMENT
;
TRACE
(
"%x %s %s %s %d
\n
"
,
flags
,
debugstr_w
(
exe
),
debugstr_w
(
cmdline
),
debugstr_w
(
env
),
use_path
);
...
...
@@ -148,9 +149,9 @@ static MSVCRT_intptr_t msvcrt_spawn(int flags, const MSVCRT_wchar_t* exe, MSVCRT
memset
(
&
si
,
0
,
sizeof
(
si
));
si
.
cb
=
sizeof
(
si
);
msvcrt_create_io_inherit_block
(
&
si
.
cbReserved2
,
&
si
.
lpReserved2
);
if
(
flags
==
MSVCRT__P_DETACH
)
create_flags
|=
DETACHED_PROCESS
;
if
(
!
CreateProcessW
(
fullname
,
cmdline
,
NULL
,
NULL
,
TRUE
,
flags
==
MSVCRT__P_DETACH
?
DETACHED_PROCESS
:
0
,
env
,
NULL
,
&
si
,
&
pi
))
create_flags
,
env
,
NULL
,
&
si
,
&
pi
))
{
msvcrt_set_errno
(
GetLastError
());
MSVCRT_free
(
si
.
lpReserved2
);
...
...
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