Commit 18ac6e1a authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

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

parent c1c76d27
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment