cmd: Ensure WCMD_assoc error messages are sent to stderr instead of stdout.

This commit is contained in:
Frédéric Delanoy 2011-08-29 21:45:15 +02:00 committed by Alexandre Julliard
parent c1c76d279e
commit 18ac6e1a2c
1 changed files with 2 additions and 2 deletions

View File

@ -2892,7 +2892,7 @@ void WCMD_assoc (const WCHAR *command, BOOL assoc) {
LoadStringW(hinst, WCMD_NOFTYPE, msgbuffer, sizeof(msgbuffer)/sizeof(WCHAR));
}
wsprintfW(outbuffer, msgbuffer, keyValue);
WCMD_output_asis(outbuffer);
WCMD_output_asis_stderr(outbuffer);
errorlevel = 2;
}
@ -2933,7 +2933,7 @@ void WCMD_assoc (const WCHAR *command, BOOL assoc) {
sizeof(msgbuffer)/sizeof(WCHAR));
}
wsprintfW(outbuffer, msgbuffer, keyValue);
WCMD_output_asis(outbuffer);
WCMD_output_asis_stderr(outbuffer);
errorlevel = 2;
}