Modified: trunk/reactos/subsys/system/cmd/alias.c
Modified: trunk/reactos/subsys/system/cmd/attrib.c
Modified: trunk/reactos/subsys/system/cmd/batch.c
Modified: trunk/reactos/subsys/system/cmd/beep.c
Modified: trunk/reactos/subsys/system/cmd/call.c
Modified: trunk/reactos/subsys/system/cmd/chcp.c
Modified: trunk/reactos/subsys/system/cmd/choice.c
Modified: trunk/reactos/subsys/system/cmd/cls.c
Modified: trunk/reactos/subsys/system/cmd/cmd.c
Modified: trunk/reactos/subsys/system/cmd/color.c
Modified: trunk/reactos/subsys/system/cmd/console.c
Modified: trunk/reactos/subsys/system/cmd/copy.c
Modified: trunk/reactos/subsys/system/cmd/date.c
Modified: trunk/reactos/subsys/system/cmd/del.c
Modified: trunk/reactos/subsys/system/cmd/delay.c
Modified: trunk/reactos/subsys/system/cmd/dir.c
Modified: trunk/reactos/subsys/system/cmd/dirstack.c
Modified: trunk/reactos/subsys/system/cmd/echo.c
Modified: trunk/reactos/subsys/system/cmd/error.c
Modified: trunk/reactos/subsys/system/cmd/for.c
Modified: trunk/reactos/subsys/system/cmd/free.c
Modified: trunk/reactos/subsys/system/cmd/goto.c
Modified: trunk/reactos/subsys/system/cmd/if.c
Modified: trunk/reactos/subsys/system/cmd/internal.c
Modified: trunk/reactos/subsys/system/cmd/label.c
Modified: trunk/reactos/subsys/system/cmd/locale.c
Modified: trunk/reactos/subsys/system/cmd/makefile
Modified: trunk/reactos/subsys/system/cmd/memory.c
Modified: trunk/reactos/subsys/system/cmd/misc.c
Modified: trunk/reactos/subsys/system/cmd/move.c
Modified: trunk/reactos/subsys/system/cmd/msgbox.c
Modified: trunk/reactos/subsys/system/cmd/path.c
Modified: trunk/reactos/subsys/system/cmd/pause.c
Modified: trunk/reactos/subsys/system/cmd/prompt.c
Modified: trunk/reactos/subsys/system/cmd/ren.c
Modified: trunk/reactos/subsys/system/cmd/screen.c
Modified: trunk/reactos/subsys/system/cmd/set.c
Modified: trunk/reactos/subsys/system/cmd/shift.c
Modified: trunk/reactos/subsys/system/cmd/start.c
Modified: trunk/reactos/subsys/system/cmd/time.c
Modified: trunk/reactos/subsys/system/cmd/timer.c
Modified: trunk/reactos/subsys/system/cmd/title.c
Modified: trunk/reactos/subsys/system/cmd/type.c
Modified: trunk/reactos/subsys/system/cmd/ver.c
Modified: trunk/reactos/subsys/system/cmd/verify.c
Modified: trunk/reactos/subsys/system/cmd/vol.c
Modified: trunk/reactos/subsys/system/cmd/window.c
--- trunk/reactos/subsys/system/cmd/alias.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/alias.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -237,7 +237,7 @@
/* specified routines */
VOID ExpandAlias (LPTSTR cmd, INT maxlen)
{
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
unsigned n = 0,
m,
i,
@@ -281,8 +281,8 @@
m = _tcslen (ptr->lpSubst);
if ((int)(_tcslen (cmd) - len + m - n) > maxlen)
{
- LoadString( GetModuleHandle(NULL), STRING_ALIAS_ERROR, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_ALIAS_ERROR, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg);
/* the parser won't cause any problems with an empty line */
cmd[0] = _T('\0');
}
@@ -306,12 +306,12 @@
INT CommandAlias (LPTSTR cmd, LPTSTR param)
{
LPTSTR ptr;
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
if (!_tcsncmp (param, _T("/?"), 2))
{
- LoadString( GetModuleHandle(NULL), STRING_ALIAS_HELP, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_ALIAS_HELP, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
return 0;
}
--- trunk/reactos/subsys/system/cmd/attrib.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/attrib.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -197,7 +197,7 @@
BOOL bDirectories = FALSE;
DWORD dwAttrib = 0;
DWORD dwMask = 0;
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
/* initialize strings */
szPath[0] = _T('\0');
@@ -206,8 +206,8 @@
/* print help */
if (!_tcsncmp (param, _T("/?"), 2))
{
- LoadString( GetModuleHandle(NULL), STRING_ATTRIB_HELP, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_ATTRIB_HELP, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
return 0;
}
--- trunk/reactos/subsys/system/cmd/batch.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/batch.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -219,7 +219,7 @@
BOOL Batch (LPTSTR fullname, LPTSTR firstword, LPTSTR param)
{
HANDLE hFile;
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
hFile = CreateFile (fullname, GENERIC_READ, FILE_SHARE_READ, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL |
@@ -232,8 +232,8 @@
if (hFile == INVALID_HANDLE_VALUE)
{
- LoadString( GetModuleHandle(NULL), STRING_BATCH_ERROR, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_BATCH_ERROR, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg);
return FALSE;
}
--- trunk/reactos/subsys/system/cmd/beep.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/beep.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -32,12 +32,12 @@
INT cmd_beep (LPTSTR cmd, LPTSTR param)
{
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
if (_tcsncmp (param, _T("/?"), 2) == 0)
{
- LoadString( GetModuleHandle(NULL), STRING_ALIAS_HELP, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_ALIAS_HELP, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts ((LPTSTR)szMsg);
return 0;
}
--- trunk/reactos/subsys/system/cmd/call.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/call.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -45,15 +45,15 @@
INT cmd_call (LPTSTR cmd, LPTSTR param)
{
LPBATCH_CONTEXT n = NULL;
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
#ifdef _DEBUG
DebugPrintf (_T("cmd_call: (\'%s\',\'%s\')\n"), cmd, param);
#endif
if (!_tcsncmp (param, _T("/?"), 2))
{
- LoadString( GetModuleHandle(NULL), STRING_CALL_HELP, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CALL_HELP, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts ((LPTSTR)szMsg);
return 0;
}
--- trunk/reactos/subsys/system/cmd/chcp.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/chcp.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -22,13 +22,13 @@
INT args;
UINT uOldCodePage;
UINT uNewCodePage;
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
/* print help */
if (!_tcsncmp (param, _T("/?"), 2))
{
- LoadString( GetModuleHandle(NULL), STRING_CHCP_HELP, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CHCP_HELP, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
return 0;
}
@@ -38,8 +38,8 @@
if (args == 0)
{
/* display active code page number */
- LoadString( GetModuleHandle(NULL), STRING_CHCP_ERROR1, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, GetConsoleCP ());
+ LoadString( GetModuleHandle(NULL), STRING_CHCP_ERROR1, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, GetConsoleCP ());
return 0;
}
@@ -47,8 +47,8 @@
if (args >= 2)
{
/* too many parameters */
- LoadString( GetModuleHandle(NULL), STRING_CHCP_ERROR2, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, param);
+ LoadString( GetModuleHandle(NULL), STRING_CHCP_ERROR2, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, param);
return 1;
}
@@ -61,16 +61,16 @@
if (uNewCodePage == 0)
{
- LoadString( GetModuleHandle(NULL), STRING_CHCP_ERROR3, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, arg[0]);
+ LoadString( GetModuleHandle(NULL), STRING_CHCP_ERROR3, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, arg[0]);
freep (arg);
return 1;
}
if (!SetConsoleCP (uNewCodePage))
{
- LoadString( GetModuleHandle(NULL), STRING_CHCP_ERROR4, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CHCP_ERROR4, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg);
}
else
{
--- trunk/reactos/subsys/system/cmd/choice.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/choice.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -121,17 +121,16 @@
INT GCret;
TCHAR Ch;
DWORD amount,clk;
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
- LoadString( GetModuleHandle(NULL), STRING_CHOICE_OPTION, (LPTSTR) Options,sizeof(lpOptions));
- lpOptions = _T(Options);
+ LoadString( GetModuleHandle(NULL), STRING_CHOICE_OPTION, Options,sizeof(lpOptions)/sizeof(TCHAR));
+ lpOptions = Options;
if (_tcsncmp (param, _T("/?"), 2) == 0)
{
- LoadString( GetModuleHandle(NULL), STRING_CHOICE_HELP, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
-
- return 0;
+ LoadString( GetModuleHandle(NULL), STRING_CHOICE_HELP, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
+ return 0;
}
/* retrieve text */
@@ -171,8 +170,8 @@
if (_tcslen (lpOptions) == 0)
{
- LoadString( GetModuleHandle(NULL), STRING_CHOICE_ERROR, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CHOICE_ERROR, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPuts (szMsg);
freep (arg);
return 1;
}
@@ -202,8 +201,8 @@
if (*s != _T(','))
{
- LoadString( GetModuleHandle(NULL), STRING_CHOICE_ERROR_TXT, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CHOICE_ERROR_TXT, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPuts (szMsg);
freep (arg);
return 1;
}
@@ -214,8 +213,8 @@
}
else if (arg[i][0] == _T('/'))
{
- LoadString( GetModuleHandle(NULL), STRING_CHOICE_ERROR_OPTION, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, arg[i]);
+ LoadString( GetModuleHandle(NULL), STRING_CHOICE_ERROR_OPTION, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, arg[i]);
freep (arg);
return 1;
}
--- trunk/reactos/subsys/system/cmd/cls.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/cls.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -36,12 +36,12 @@
DWORD dwWritten;
CONSOLE_SCREEN_BUFFER_INFO csbi;
COORD coPos;
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
if (!_tcsncmp (param, _T("/?"), 2))
{
- LoadString( GetModuleHandle(NULL), STRING_CLS_HELP, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CLS_HELP, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
return 0;
}
--- trunk/reactos/subsys/system/cmd/cmd.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/cmd.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -552,7 +552,7 @@
{
TCHAR cmdline[CMDLINE_LENGTH];
LPTSTR s;
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
#ifdef FEATURE_REDIRECTION
TCHAR in[CMDLINE_LENGTH] = _T("");
TCHAR out[CMDLINE_LENGTH] = _T("");
@@ -634,15 +634,15 @@
FILE_ATTRIBUTE_NORMAL, NULL);
if (hFile == INVALID_HANDLE_VALUE)
{
- LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR1, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, in);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR1, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, in);
return;
}
if (!SetStdHandle (STD_INPUT_HANDLE, hFile))
{
- LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR1, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, in);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR1, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, in);
return;
}
#ifdef _DEBUG
@@ -667,8 +667,8 @@
if (hFile[1] == INVALID_HANDLE_VALUE){
- LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR2, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR2, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg);
return;
}
@@ -720,16 +720,16 @@
FILE_ATTRIBUTE_NORMAL, NULL);
if (hFile == INVALID_HANDLE_VALUE)
{
- LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR3, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, out);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR3, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, out);
return;
}
if (!SetStdHandle (STD_OUTPUT_HANDLE, hFile))
{
- LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR3, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, out);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR3, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, out);
return;
}
@@ -782,16 +782,16 @@
NULL);
if (hFile == INVALID_HANDLE_VALUE)
{
- LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR3, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, err);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR3, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, err);
return;
}
}
if (!SetStdHandle (STD_ERROR_HANDLE, hFile))
{
- LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR3, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, err);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR3, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, err);
return;
}
@@ -1076,36 +1076,36 @@
static VOID
ShowCommands (VOID)
{
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
/* print command list */
- LoadString( GetModuleHandle(NULL), STRING_CMD_HELP1, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPrintf ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_HELP1, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPrintf (szMsg);
PrintCommandList ();
/* print feature list */
- LoadString( GetModuleHandle(NULL), STRING_CMD_HELP2, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_HELP2, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
#ifdef FEATURE_ALIASES
- LoadString( GetModuleHandle(NULL), STRING_CMD_HELP3, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_HELP3, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
#endif
#ifdef FEATURE_HISTORY
- LoadString( GetModuleHandle(NULL), STRING_CMD_HELP4, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_HELP4, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
#endif
#ifdef FEATURE_UNIX_FILENAME_COMPLETION
- LoadString( GetModuleHandle(NULL), STRING_CMD_HELP5, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_HELP5, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
#endif
#ifdef FEATURE_DIRECTORY_STACK
- LoadString( GetModuleHandle(NULL), STRING_CMD_HELP6, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_HELP6, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
#endif
#ifdef FEATURE_REDIRECTION
- LoadString( GetModuleHandle(NULL), STRING_CMD_HELP7, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_HELP7, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
#endif
ConOutChar (_T('\n'));
}
@@ -1124,7 +1124,7 @@
TCHAR commandline[CMDLINE_LENGTH];
TCHAR ModuleName[_MAX_PATH + 1];
INT i;
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
//INT len;
//TCHAR *ptr, *cmdLine;
@@ -1154,8 +1154,8 @@
if (argc >= 2 && !_tcsncmp (argv[1], _T("/?"), 2))
{
- LoadString( GetModuleHandle(NULL), STRING_CMD_HELP8, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_HELP8, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
ExitProcess (0);
}
SetConsoleMode (hIn, ENABLE_PROCESSED_INPUT);
@@ -1259,8 +1259,8 @@
if (IsExistingFile (_T("commandline")))
{
- LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR4, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, commandline);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR4, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, commandline);
ParseCommandLine (commandline);
}
}
@@ -1291,20 +1291,20 @@
static VOID Cleanup (int argc, TCHAR *argv[])
{
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
/* run cmdexit.bat */
if (IsExistingFile (_T("cmdexit.bat")))
{
- LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR5, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR5, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg);
ParseCommandLine (_T("cmdexit.bat"));
}
else if (IsExistingFile (_T("\\cmdexit.bat")))
{
- LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR5, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR5, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg);
ParseCommandLine (_T("\\cmdexit.bat"));
}
#ifndef __REACTOS__
@@ -1320,8 +1320,8 @@
if (IsExistingFile (_T("commandline")))
{
- LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR4, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, commandline);
+ LoadString( GetModuleHandle(NULL), STRING_CMD_ERROR4, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, commandline);
ParseCommandLine (commandline);
}
}
--- trunk/reactos/subsys/system/cmd/color.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/color.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -29,9 +29,9 @@
static VOID ColorHelp (VOID)
{
- WCHAR szMsg[RC_STRING_MAX_SIZE];
- LoadString( GetModuleHandle(NULL), STRING_COLOR_HELP1, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
+ LoadString( GetModuleHandle(NULL), STRING_COLOR_HELP1, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
}
@@ -41,29 +41,29 @@
DWORD dwWritten;
CONSOLE_SCREEN_BUFFER_INFO csbi;
COORD coPos;
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
if ((wColor & 0xF) == (wColor &0xF0) >> 4)
{
- LoadString( GetModuleHandle(NULL), STRING_COLOR_ERROR1, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPuts ((LPTSTR)szMsg);
- }
- else
- {
+ LoadString( GetModuleHandle(NULL), STRING_COLOR_ERROR1, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPuts (szMsg);
+ }
+ else
+ {
if (bFill == TRUE)
- {
- GetConsoleScreenBufferInfo (hConsole, &csbi);
+ {
+ GetConsoleScreenBufferInfo (hConsole, &csbi);
- coPos.X = 0;
- coPos.Y = 0;
- FillConsoleOutputAttribute (hConsole,
+ coPos.X = 0;
+ coPos.Y = 0;
+ FillConsoleOutputAttribute (hConsole,
(WORD)(wColor & 0x00FF),
(csbi.dwSize.X)*(csbi.dwSize.Y),
coPos,
&dwWritten);
- }
- SetConsoleTextAttribute (hConsole, (WORD)(wColor & 0x00FF));
- }
+ }
+ SetConsoleTextAttribute (hConsole, (WORD)(wColor & 0x00FF));
+ }
}
@@ -74,7 +74,7 @@
*/
INT CommandColor (LPTSTR first, LPTSTR rest)
{
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
if (_tcsncmp (rest, _T("/?"), 2) == 0)
{
@@ -92,18 +92,18 @@
if (StringToColor (&wColor, &rest) == FALSE)
{
- LoadString( GetModuleHandle(NULL), STRING_COLOR_ERROR2, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_COLOR_ERROR2, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPuts (szMsg);
return 1;
}
- LoadString( GetModuleHandle(NULL), STRING_COLOR_ERROR3, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, wColor);
+ LoadString( GetModuleHandle(NULL), STRING_COLOR_ERROR3, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, wColor);
if ((wColor & 0xF) == (wColor &0xF0) >> 4)
{
- LoadString( GetModuleHandle(NULL), STRING_COLOR_ERROR4, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, wColor);
+ LoadString( GetModuleHandle(NULL), STRING_COLOR_ERROR4, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, wColor);
return 1;
}
--- trunk/reactos/subsys/system/cmd/console.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/console.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -214,7 +214,7 @@
DWORD ret;
LPTSTR text;
va_list arg_ptr;
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
va_start (arg_ptr, MessageId);
ret = FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
@@ -233,8 +233,8 @@
}
else
{
- LoadString( GetModuleHandle(NULL), STRING_CONSOLE_ERROR, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_CONSOLE_ERROR, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg);
}
}
--- trunk/reactos/subsys/system/cmd/copy.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/copy.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -301,13 +301,13 @@
LPTSTR lpOptions;
TCHAR Options[3];
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
- LoadString( GetModuleHandle(NULL), STRING_COPY_OPTION, (LPTSTR) Options,sizeof(Options)+sizeof(WCHAR));
- lpOptions = _T(Options);
+ LoadString( GetModuleHandle(NULL), STRING_COPY_OPTION, Options,sizeof(Options)/sizeof(TCHAR));
+ lpOptions = Options;
- LoadString( GetModuleHandle(NULL), STRING_COPY_HELP1, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPrintf ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_COPY_HELP1, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPrintf (szMsg);
ConInString (inp, 10);
ConOutPuts (_T(""));
@@ -339,7 +339,7 @@
DWORD dwWritten;
DWORD i;
BOOL bEof = FALSE;
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
#ifdef _DEBUG
DebugPrintf (_T("checking mode\n"));
@@ -351,8 +351,8 @@
NULL, OPEN_EXISTING, 0, NULL);
if (hFileSrc == INVALID_HANDLE_VALUE)
{
- LoadString( GetModuleHandle(NULL), STRING_COPY_ERROR1, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, source);
+ LoadString( GetModuleHandle(NULL), STRING_COPY_ERROR1, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, source);
return 0;
}
@@ -379,8 +379,8 @@
{
if (!_tcscmp (dest, source))
{
- LoadString( GetModuleHandle(NULL), STRING_COPY_ERROR2, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, source);
+ LoadString( GetModuleHandle(NULL), STRING_COPY_ERROR2, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, source);
CloseHandle (hFileSrc);
return 0;
@@ -456,8 +456,8 @@
if (dwWritten != dwRead)
{
- LoadString( GetModuleHandle(NULL), STRING_COPY_ERROR3, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_COPY_ERROR3, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg);
free (buffer);
CloseHandle (hFileDest);
@@ -638,7 +638,7 @@
TCHAR dir_d[_MAX_DIR];
TCHAR file_d[_MAX_FNAME];
TCHAR ext_d[_MAX_EXT];
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
int argc;
int append;
@@ -655,8 +655,8 @@
if (!_tcsncmp (rest, _T("/?"), 2))
{
- LoadString( GetModuleHandle(NULL), STRING_COPY_HELP2, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_COPY_HELP2, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
return 1;
}
@@ -728,8 +728,8 @@
}
else if (bDestFound && bWildcards)
{
- LoadString( GetModuleHandle(NULL), STRING_COPY_ERROR4, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_COPY_ERROR4, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg);
DeleteFileList (sources);
freep (p);
--- trunk/reactos/subsys/system/cmd/date.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/date.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -47,24 +47,24 @@
static VOID
PrintDateString (VOID)
{
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
switch (nDateFormat)
{
case 0: /* mmddyy */
default:
- LoadString( GetModuleHandle(NULL), STRING_DATE_HELP1, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPrintf ((LPTSTR)szMsg, cDateSeparator, cDateSeparator);
+ LoadString( GetModuleHandle(NULL), STRING_DATE_HELP1, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPrintf (szMsg, cDateSeparator, cDateSeparator);
break;
case 1: /* ddmmyy */
- LoadString( GetModuleHandle(NULL), STRING_DATE_HELP2, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPrintf ((LPTSTR)szMsg, cDateSeparator, cDateSeparator);
+ LoadString( GetModuleHandle(NULL), STRING_DATE_HELP2, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPrintf (szMsg, cDateSeparator, cDateSeparator);
break;
case 2: /* yymmdd */
- LoadString( GetModuleHandle(NULL), STRING_DATE_HELP3, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPrintf ((LPTSTR)szMsg, cDateSeparator, cDateSeparator);
+ LoadString( GetModuleHandle(NULL), STRING_DATE_HELP3, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPrintf (szMsg, cDateSeparator, cDateSeparator);
break;
}
}
@@ -189,12 +189,12 @@
INT i;
BOOL bPrompt = TRUE;
INT nDateString = -1;
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
if (!_tcsncmp (param, _T("/?"), 2))
{
- LoadString( GetModuleHandle(NULL), STRING_DATE_HELP4, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_DATE_HELP4, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts ((LPTSTR)szMsg);
return 0;
}
@@ -247,8 +247,8 @@
freep (arg);
return 0;
}
- LoadString( GetModuleHandle(NULL), STRING_DATE_ERROR, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_DATE_ERROR, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPuts (szMsg);
}
--- trunk/reactos/subsys/system/cmd/del.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/del.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -111,22 +111,22 @@
LPTSTR lpOptions;
TCHAR Options[11];
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
LONG ch;
- LoadString( GetModuleHandle(NULL), STRING_DEL_OPTION, (LPTSTR) Options,sizeof(Options)+sizeof(WCHAR));
- lpOptions = _T(Options);
+ LoadString( GetModuleHandle(NULL), STRING_DEL_OPTION, Options,sizeof(Options)/sizeof(TCHAR));
+ lpOptions = Options;
if (!_tcsncmp (param, _T("/?"), 2))
{
- LoadString( GetModuleHandle(NULL), STRING_DEL_HELP1, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPrintf ((LPTSTR)szMsg,
- lpOptions[2],Options[3],lpOptions[6],lpOptions[4],lpOptions[7],lpOptions[9],lpOptions[10],
- lpOptions[2],Options[3],lpOptions[6],lpOptions[4],lpOptions[7],lpOptions[9],lpOptions[10],
- lpOptions[2],Options[3],lpOptions[6],lpOptions[4],lpOptions[7],lpOptions[9],lpOptions[10],
- lpOptions[2],Options[3],lpOptions[6],lpOptions[4],lpOptions[7],lpOptions[9],lpOptions[10]
+ LoadString( GetModuleHandle(NULL), STRING_DEL_HELP1, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPrintf (szMsg,
+ lpOptions[2],Options[3],lpOptions[6],lpOptions[4],lpOptions[7],lpOptions[9],lpOptions[10],
+ lpOptions[2],Options[3],lpOptions[6],lpOptions[4],lpOptions[7],lpOptions[9],lpOptions[10],
+ lpOptions[2],Options[3],lpOptions[6],lpOptions[4],lpOptions[7],lpOptions[9],lpOptions[10],
+ lpOptions[2],Options[3],lpOptions[6],lpOptions[4],lpOptions[7],lpOptions[9],lpOptions[10]
);
return 0;
}
@@ -212,9 +212,9 @@
if (!((dwFlags & DEL_YES) || (dwFlags & DEL_QUIET) || (dwFlags & DEL_PROMPT)))
{
- LoadString( GetModuleHandle(NULL), STRING_DEL_HELP2, (LPTSTR) szMsg,sizeof(szMsg));
+ LoadString( GetModuleHandle(NULL), STRING_DEL_HELP2, szMsg,sizeof(szMsg)/sizeof(TCHAR));
- res = FilePromptYN (_T( (LPTSTR) szMsg));
+ res = FilePromptYN (szMsg);
if ((res == PROMPT_NO) || (res == PROMPT_BREAK))
break;
@@ -231,8 +231,8 @@
{
/* wildcards in filespec */
#ifdef _DEBUG
- LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR1, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR1, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf ((LPTSTR)szMsg);
#endif
GetFullPathName (arg[i],
@@ -241,11 +241,11 @@
&pFilePart);
#ifdef _DEBUG
- LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR2, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, szFullPath);
+ LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR2, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, szFullPath);
- LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR3, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, pFilePart);
+ LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR3, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (pFilePart);
#endif
@@ -268,18 +268,18 @@
_tcscpy (pFilePart, f.cFileName);
#ifdef _DEBUG
- LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR4, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR4, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg);
#endif
/* ask for deleting */
if (dwFlags & DEL_PROMPT)
{
- LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR5, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, szFullPath);
+ LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR5, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szFullPath);
- LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR6, (LPTSTR) szMsg,sizeof(szMsg));
- res = FilePromptYN ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR6, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ res = FilePromptYN (szMsg);
if ((res == PROMPT_NO) || (res == PROMPT_BREAK))
{
@@ -288,10 +288,10 @@
}
if (!(dwFlags & DEL_QUIET) && !(dwFlags & DEL_TOTAL))
- {
- LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR7, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, szFullPath);
- }
+ {
+ LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR7, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, szFullPath);
+ }
/* delete the file */
if (!(dwFlags & DEL_NOTHING))
@@ -334,8 +334,8 @@
{
/* no wildcards in filespec */
#ifdef _DEBUG
- LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR8, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR8, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg);
#endif
GetFullPathName (arg[i],
MAX_PATH,
@@ -345,11 +345,11 @@
/*ask for deleting */
if((dwFlags & DEL_PROMPT) && (FindFirstFile(szFullPath, &f) != INVALID_HANDLE_VALUE)) //Don't ask if the file doesn't exist, the following code will make the error-msg
{
- LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR5, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, szFullPath);
+ LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR5, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, szFullPath);
- LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR6, (LPTSTR) szMsg,sizeof(szMsg));
- res = FilePromptYN ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR6, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ res = FilePromptYN (szMsg);
if ((res == PROMPT_NO) || (res == PROMPT_BREAK))
{
@@ -358,14 +358,14 @@
}
#ifdef _DEBUG
- LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR3, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, szFullPath);
+ LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR3, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, szFullPath);
#endif
if (!(dwFlags & DEL_QUIET) && !(dwFlags & DEL_TOTAL))
- {
- LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR7, (LPTSTR) szMsg,sizeof(szMsg));
- ConErrPrintf ((LPTSTR)szMsg, szFullPath);
- }
+ {
+ LoadString( GetModuleHandle(NULL), STRING_DEL_ERROR7, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConErrPrintf (szMsg, szFullPath);
+ }
if (!(dwFlags & DEL_NOTHING))
{
@@ -416,15 +416,15 @@
if (!(dwFlags & DEL_QUIET))
{
if (dwFiles < 2)
- {
- LoadString( GetModuleHandle(NULL), STRING_DEL_HELP3, (LPTSTR) szMsg,sizeof(szMsg));
- }
+ {
+ LoadString( GetModuleHandle(NULL), STRING_DEL_HELP3, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ }
else
- {
- LoadString( GetModuleHandle(NULL), STRING_DEL_HELP4, (LPTSTR) szMsg,sizeof(szMsg));
- }
+ {
+ LoadString( GetModuleHandle(NULL), STRING_DEL_HELP4, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ }
- ConOutPrintf ((LPTSTR)szMsg, dwFiles);
+ ConOutPrintf (szMsg, dwFiles);
}
return 0;
--- trunk/reactos/subsys/system/cmd/delay.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/delay.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -19,14 +19,14 @@
{
DWORD val;
DWORD mul=1000;
- WCHAR szMsg[RC_STRING_MAX_SIZE];
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
if (_tcsncmp (param, _T("/?"), 2) == 0)
{
- LoadString( GetModuleHandle(NULL), STRING_DELAY_HELP, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ LoadString( GetModuleHandle(NULL), STRING_DELAY_HELP, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
- return 0;
+ return 0;
}
if (*param==0)
--- trunk/reactos/subsys/system/cmd/dir.c 2005-05-01 09:53:19 UTC (rev 14907)
+++ trunk/reactos/subsys/system/cmd/dir.c 2005-05-01 10:28:58 UTC (rev 14908)
@@ -210,9 +210,9 @@
static VOID
DirHelp (VOID)
{
- WCHAR szMsg[RC_STRING_MAX_SIZE];
- LoadString( GetModuleHandle(NULL), STRING_DIR_HELP1, (LPTSTR) szMsg,sizeof(szMsg));
- ConOutPuts ((LPTSTR)szMsg);
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
+ LoadString( GetModuleHandle(NULL), STRING_DIR_HELP1, szMsg,sizeof(szMsg)/sizeof(TCHAR));
+ ConOutPuts (szMsg);
}
@@ -228,13 +228,13 @@
LPDIRSWITCHFLAGS lpFlags /* [IN/OUT] The flags after calculating switches */
)
{
-TCHAR cCurSwitch; /* The current switch */
-TCHAR cCurChar; /* Current examing character */
-TCHAR cCurUChar; /* Current upper examing character */
-BOOL bNegative; /* Negative switch */
-BOOL bPNegative; /* Negative switch parameter */
-BOOL bIntoQuotes; /* A flag showing if we are in quotes (") */
-LPTSTR ptrLast; /* A pointer to the last character of param */
+ TCHAR cCurSwitch; /* The current switch */
+ TCHAR cCurChar; /* Current examing character */
+ TCHAR cCurUChar; /* Current upper examing character */
[truncated at 1000 lines; 1959 more skipped]