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
d5e175e3
Commit
d5e175e3
authored
Sep 24, 2019
by
Kevin Puetz
Committed by
Alexandre Julliard
Sep 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Correctly pass the '-' file name (stdin) to the compiler.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=38300
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4e896e3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
winegcc.c
tools/winegcc/winegcc.c
+2
-2
No files found.
tools/winegcc/winegcc.c
View file @
d5e175e3
...
@@ -795,7 +795,7 @@ no_compat_defines:
...
@@ -795,7 +795,7 @@ no_compat_defines:
/* last, but not least, the files */
/* last, but not least, the files */
for
(
j
=
0
;
j
<
opts
->
files
->
size
;
j
++
)
for
(
j
=
0
;
j
<
opts
->
files
->
size
;
j
++
)
{
{
if
(
opts
->
files
->
base
[
j
][
0
]
!=
'-'
)
if
(
opts
->
files
->
base
[
j
][
0
]
!=
'-'
||
!
opts
->
files
->
base
[
j
][
1
])
/* not an option or bare '-' (i.e. stdin) */
strarray_add
(
comp_args
,
opts
->
files
->
base
[
j
]);
strarray_add
(
comp_args
,
opts
->
files
->
base
[
j
]);
}
}
...
@@ -1472,7 +1472,7 @@ int main(int argc, char **argv)
...
@@ -1472,7 +1472,7 @@ int main(int argc, char **argv)
/* parse options */
/* parse options */
for
(
i
=
1
;
i
<
argc
;
i
++
)
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
{
if
(
argv
[
i
][
0
]
==
'-'
)
/* option
*/
if
(
argv
[
i
][
0
]
==
'-'
&&
argv
[
i
][
1
])
/* option, except '-' alone is stdin, which is a file
*/
{
{
/* determine if this switch is followed by a separate argument */
/* determine if this switch is followed by a separate argument */
next_is_arg
=
0
;
next_is_arg
=
0
;
...
...
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