mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Fixed batch mode bugs.
svn path=/trunk/; revision=739
This commit is contained in:
parent
11d7e1e18c
commit
95fcdd0943
2 changed files with 12 additions and 12 deletions
|
@ -391,7 +391,7 @@ INT CommandDelete (LPTSTR cmd, LPTSTR param)
|
||||||
else
|
else
|
||||||
ConOutPrintf (_T(" %lu file%s deleted\n"),
|
ConOutPrintf (_T(" %lu file%s deleted\n"),
|
||||||
dwFiles,
|
dwFiles,
|
||||||
(dwFiles == 1) ? "s" : "");
|
(dwFiles == 1) ? "" : "s");
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -27,18 +27,18 @@
|
||||||
#include "cmd.h"
|
#include "cmd.h"
|
||||||
|
|
||||||
|
|
||||||
#define INVALID_SWITCH _T("Invalid switch - /%c\n")
|
#define INVALID_SWITCH _T("Invalid switch - /%c\n")
|
||||||
#define TOO_MANY_PARAMETERS _T("Too many parameters - %s\n")
|
#define TOO_MANY_PARAMETERS _T("Too many parameters - %s\n")
|
||||||
#define PATH_NOT_FOUND _T("Path not found\n")
|
#define PATH_NOT_FOUND _T("Path not found\n")
|
||||||
#define FILE_NOT_FOUND _T("File not found")
|
#define FILE_NOT_FOUND _T("File not found\n")
|
||||||
#define REQ_PARAM_MISSING _T("Required parameter missing\n")
|
#define REQ_PARAM_MISSING _T("Required parameter missing\n")
|
||||||
#define INVALID_DRIVE _T("Invalid drive specification\n")
|
#define INVALID_DRIVE _T("Invalid drive specification\n")
|
||||||
#define INVALID_PARAM_FORMAT _T("Invalid parameter format - %s\n")
|
#define INVALID_PARAM_FORMAT _T("Invalid parameter format - %s\n")
|
||||||
#define BADCOMMAND _T("Bad command or filename\n")
|
#define BADCOMMAND _T("Bad command or filename\n")
|
||||||
#define OUT_OF_MEMORY _T("Out of memory error.\n")
|
#define OUT_OF_MEMORY _T("Out of memory error.\n")
|
||||||
#define CANNOTPIPE _T("Error! Cannot pipe! Cannot open temporary file!\n")
|
#define CANNOTPIPE _T("Error! Cannot pipe! Cannot open temporary file!\n")
|
||||||
|
|
||||||
#define D_PAUSEMSG _T("Press any key to continue . . .")
|
#define D_PAUSEMSG _T("Press any key to continue . . .")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ VOID ErrorMessage (DWORD dwErrorCode, LPTSTR szFormat, ...)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
va_start (arg_ptr, szFormat);
|
va_start (arg_ptr, szFormat);
|
||||||
_vstprintf (szMessage, szFormat, arg_ptr);
|
_vstprintf (szMessage, szFormat, arg_ptr);
|
||||||
va_end (arg_ptr);
|
va_end (arg_ptr);
|
||||||
|
|
||||||
#ifndef __REACTOS__
|
#ifndef __REACTOS__
|
||||||
|
|
Loading…
Reference in a new issue