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
6faea5a6
Commit
6faea5a6
authored
Nov 28, 2011
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Correctly parse program name when launching external processes.
parent
d7bc2eff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
wcmdmain.c
programs/cmd/wcmdmain.c
+6
-1
No files found.
programs/cmd/wcmdmain.c
View file @
6faea5a6
...
...
@@ -978,7 +978,12 @@ void WCMD_run_program (WCHAR *command, int called) {
static
const
WCHAR
envPathExt
[]
=
{
'P'
,
'A'
,
'T'
,
'H'
,
'E'
,
'X'
,
'T'
,
'\0'
};
static
const
WCHAR
delims
[]
=
{
'/'
,
'\\'
,
':'
,
'\0'
};
WCMD_parse
(
command
,
quals
,
param1
,
param2
);
/* Quick way to get the filename */
/* Quick way to get the filename
* (but handle leading / as part of program name, not qualifier)
*/
for
(
len
=
0
;
command
[
len
]
==
'/'
;
len
++
)
param1
[
len
]
=
'/'
;
WCMD_parse
(
command
+
len
,
quals
,
param1
+
len
,
param2
);
if
(
!
(
*
param1
)
&&
!
(
*
param2
))
return
;
...
...
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