Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
aee397a3
Commit
aee397a3
authored
Oct 01, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Output error messages to stderr instead of stdout where appropriate.
parent
40c783fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
builtins.c
programs/cmd/builtins.c
+2
-2
wcmdmain.c
programs/cmd/wcmdmain.c
+4
-4
No files found.
programs/cmd/builtins.c
View file @
aee397a3
...
...
@@ -1124,7 +1124,7 @@ void WCMD_for (WCHAR *p, CMD_LIST **cmdList) {
/* Process the input file */
if
(
input
==
INVALID_HANDLE_VALUE
)
{
WCMD_print_error
();
WCMD_output
(
WCMD_LoadMessage
(
WCMD_READFAIL
),
item
);
WCMD_output
_stderr
(
WCMD_LoadMessage
(
WCMD_READFAIL
),
item
);
errorlevel
=
1
;
return
;
/* FOR loop aborts at first failure here */
...
...
@@ -1539,7 +1539,7 @@ void WCMD_if (WCHAR *p, CMD_LIST **cmdList) {
WCMD_parameter
(
s
,
1
,
&
command
,
NULL
);
}
else
{
WCMD_output
(
WCMD_LoadMessage
(
WCMD_SYNTAXERR
));
WCMD_output
_stderr
(
WCMD_LoadMessage
(
WCMD_SYNTAXERR
));
return
;
}
...
...
programs/cmd/wcmdmain.c
View file @
aee397a3
...
...
@@ -1055,7 +1055,7 @@ void WCMD_run_program (WCHAR *command, int called) {
if
(
strchrW
(
param1
,
'.'
)
!=
NULL
)
extensionsupplied
=
TRUE
;
if
(
strlenW
(
param1
)
>=
MAX_PATH
)
{
WCMD_output_asis
(
WCMD_LoadMessage
(
WCMD_LINETOOLONG
));
WCMD_output_asis
_stderr
(
WCMD_LoadMessage
(
WCMD_LINETOOLONG
));
return
;
}
...
...
@@ -1836,9 +1836,9 @@ WCHAR *WCMD_ReadAndParseLine(const WCHAR *optionalcmd, CMD_LIST **output,
/* Handle truncated input - issue warning */
if
(
strlenW
(
extraSpace
)
==
MAXSTRING
-
1
)
{
WCMD_output_asis
(
WCMD_LoadMessage
(
WCMD_TRUNCATEDLINE
));
WCMD_output_asis
(
extraSpace
);
WCMD_output_asis
(
newline
);
WCMD_output_asis
_stderr
(
WCMD_LoadMessage
(
WCMD_TRUNCATEDLINE
));
WCMD_output_asis
_stderr
(
extraSpace
);
WCMD_output_asis
_stderr
(
newline
);
}
/* Replace env vars if in a batch context */
...
...
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