cmd: Ensure WCMD_assoc error messages are sent to stderr instead of stdout.
This commit is contained in:
parent
c1c76d279e
commit
18ac6e1a2c
|
@ -2892,7 +2892,7 @@ void WCMD_assoc (const WCHAR *command, BOOL assoc) {
|
||||||
LoadStringW(hinst, WCMD_NOFTYPE, msgbuffer, sizeof(msgbuffer)/sizeof(WCHAR));
|
LoadStringW(hinst, WCMD_NOFTYPE, msgbuffer, sizeof(msgbuffer)/sizeof(WCHAR));
|
||||||
}
|
}
|
||||||
wsprintfW(outbuffer, msgbuffer, keyValue);
|
wsprintfW(outbuffer, msgbuffer, keyValue);
|
||||||
WCMD_output_asis(outbuffer);
|
WCMD_output_asis_stderr(outbuffer);
|
||||||
errorlevel = 2;
|
errorlevel = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2933,7 +2933,7 @@ void WCMD_assoc (const WCHAR *command, BOOL assoc) {
|
||||||
sizeof(msgbuffer)/sizeof(WCHAR));
|
sizeof(msgbuffer)/sizeof(WCHAR));
|
||||||
}
|
}
|
||||||
wsprintfW(outbuffer, msgbuffer, keyValue);
|
wsprintfW(outbuffer, msgbuffer, keyValue);
|
||||||
WCMD_output_asis(outbuffer);
|
WCMD_output_asis_stderr(outbuffer);
|
||||||
errorlevel = 2;
|
errorlevel = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue