[CMD] Use _T() rather than L to initialise TCHARS.

This commit is contained in:
James Woodcock 2018-04-27 19:01:17 +01:00 committed by Hermès Bélusca-Maïto
parent d7e71357dc
commit 8b72fce3e1
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 3 additions and 3 deletions

View file

@ -1424,7 +1424,7 @@ ReadLine(TCHAR *commandline, BOOL bMore)
return FALSE; return FALSE;
} }
if (readline[0] == L'\0') if (readline[0] == _T('\0'))
{ {
return FALSE; return FALSE;
} }

View file

@ -455,7 +455,7 @@ BOOL ReadCommand(LPTSTR str, INT maxlen)
{ {
/* A CTRL-C. Don't clear the the command line, /* A CTRL-C. Don't clear the the command line,
* but return an empty string in str. */ * but return an empty string in str. */
str[0] = L'\0'; str[0] = _T('\0');
curx = orgx; curx = orgx;
cury = orgy; cury = orgy;
current = charcount = 0; current = charcount = 0;

View file

@ -70,7 +70,7 @@ INT cmd_start (LPTSTR Rest)
lpTitle = GetParameter(&Rest); lpTitle = GetParameter(&Rest);
StripQuotes(lpTitle); StripQuotes(lpTitle);
} }
else if (*Rest == L'/') else if (*Rest == _T('/'))
{ {
LPTSTR option; LPTSTR option;
Rest++; Rest++;