From 2a18423084cfa052af76a97d8cb71a44bf86d437 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 8 Mar 2005 15:02:41 +0000 Subject: [PATCH] Added error_parameter_format(), patch by Konstantinos Paliouras svn path=/trunk/; revision=13876 --- reactos/subsys/system/cmd/cmd.h | 1 + reactos/subsys/system/cmd/error.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/reactos/subsys/system/cmd/cmd.h b/reactos/subsys/system/cmd/cmd.h index f9aab35fe0f..4beb8148198 100644 --- a/reactos/subsys/system/cmd/cmd.h +++ b/reactos/subsys/system/cmd/cmd.h @@ -228,6 +228,7 @@ VOID error_sfile_not_found (LPTSTR); VOID error_file_not_found (VOID); VOID error_path_not_found (VOID); VOID error_too_many_parameters (LPTSTR); +VOID error_parameter_format(TCHAR); VOID error_invalid_switch (TCHAR); VOID error_invalid_parameter_format (LPTSTR); VOID error_out_of_memory (VOID); diff --git a/reactos/subsys/system/cmd/error.c b/reactos/subsys/system/cmd/error.c index cf383c571f9..34ae60f7588 100644 --- a/reactos/subsys/system/cmd/error.c +++ b/reactos/subsys/system/cmd/error.c @@ -20,6 +20,7 @@ #include "precomp.h" +#define PARAMETERF_ERROR _T("Parameter format not correct - %c\n") #define INVALID_SWITCH _T("Invalid switch - /%c\n") #define TOO_MANY_PARAMETERS _T("Too many parameters - %s\n") #define PATH_NOT_FOUND _T("Path not found\n") @@ -95,6 +96,10 @@ VOID ErrorMessage (DWORD dwErrorCode, LPTSTR szFormat, ...) #endif } +VOID error_parameter_format(TCHAR ch) +{ + ConErrPrintf (PARAMETERF_ERROR, ch); +} VOID error_invalid_switch (TCHAR ch)