[CMD] Use _T() rather than L to initialise TCHARS.
authorJames Woodcock <james_woodcock@yahoo.co.uk>
Fri, 27 Apr 2018 18:01:17 +0000 (19:01 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 28 Apr 2018 20:16:59 +0000 (22:16 +0200)
base/shell/cmd/cmd.c
base/shell/cmd/cmdinput.c
base/shell/cmd/start.c

index 90dc6f1..d8414e0 100644 (file)
@@ -1424,7 +1424,7 @@ ReadLine(TCHAR *commandline, BOOL bMore)
             return FALSE;
         }
 
-        if (readline[0] == L'\0')
+        if (readline[0] == _T('\0'))
         {
             return FALSE;
         }
index 09e5853..9257cb6 100644 (file)
@@ -455,7 +455,7 @@ BOOL ReadCommand(LPTSTR str, INT maxlen)
                 {
                     /* A CTRL-C.  Don't clear the the command line,
                      * but return an empty string in str. */
-                    str[0] = L'\0';
+                    str[0] = _T('\0');
                     curx = orgx;
                     cury = orgy;
                     current = charcount = 0;
index 5fe8307..190ed39 100644 (file)
@@ -70,7 +70,7 @@ INT cmd_start (LPTSTR Rest)
             lpTitle = GetParameter(&Rest);
             StripQuotes(lpTitle);
         }
-        else if (*Rest == L'/')
+        else if (*Rest == _T('/'))
         {
             LPTSTR option;
             Rest++;