[CMD] Fix the ErrorMessage() function.

Specify its szFormat parameter optional, and correctly initialize the
szMessage buffer.
This commit is contained in:
Hermès Bélusca-Maïto 2020-05-17 20:08:41 +02:00
parent d5784d6345
commit d0ced4ffdf
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
4 changed files with 17 additions and 9 deletions

View file

@ -165,7 +165,11 @@ INT CommandEchoerr (LPTSTR);
INT CommandEchoserr (LPTSTR);
/* Prototypes for ERROR.C */
VOID ErrorMessage (DWORD, LPTSTR, ...);
VOID
ErrorMessage(
IN DWORD dwErrorCode,
IN LPTSTR szFormat OPTIONAL,
...);
VOID error_no_pipe (VOID);
VOID error_bad_command (LPTSTR);