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
84580401
Commit
84580401
authored
May 19, 2003
by
Francois Gouget
Committed by
Alexandre Julliard
May 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CreateProcess("c:\Program Files\hello.bat").
parent
b367a6e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
process.c
scheduler/process.c
+3
-4
No files found.
scheduler/process.c
View file @
84580401
...
...
@@ -1264,12 +1264,11 @@ BOOL WINAPI CreateProcessA( LPCSTR app_name, LPSTR cmd_line, LPSECURITY_ATTRIBUT
char
comspec
[
MAX_PATH
];
if
(
GetEnvironmentVariableA
(
"COMSPEC"
,
comspec
,
sizeof
(
comspec
)))
{
char
*
newcmdline
,
*
q
=
strchr
(
cmd_line
,
' '
);
if
(
!
q
)
q
=
""
;
char
*
newcmdline
;
if
((
newcmdline
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
comspec
)
+
strlen
(
name
)
+
strlen
(
q
)
+
8
)))
strlen
(
comspec
)
+
4
+
strlen
(
tidy_cmdline
)
+
1
)))
{
sprintf
(
newcmdline
,
"%s /c %s
%s"
,
comspec
,
name
,
q
);
sprintf
(
newcmdline
,
"%s /c %s
"
,
comspec
,
tidy_cmdline
);
TRACE
(
"starting %s as batch binary: %s
\n
"
,
debugstr_a
(
name
),
debugstr_a
(
newcmdline
)
);
retv
=
CreateProcessA
(
comspec
,
newcmdline
,
process_attr
,
thread_attr
,
...
...
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