https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8b72fce3e14d09b0de303f7cabafb085e479574b

commit 8b72fce3e14d09b0de303f7cabafb085e479574b
Author:     James Woodcock <[email protected]>
AuthorDate: Fri Apr 27 19:01:17 2018 +0100
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Sat Apr 28 22:16:59 2018 +0200

    [CMD] Use _T() rather than L to initialise TCHARS.
---
 base/shell/cmd/cmd.c      | 2 +-
 base/shell/cmd/cmdinput.c | 2 +-
 base/shell/cmd/start.c    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/base/shell/cmd/cmd.c b/base/shell/cmd/cmd.c
index 90dc6f1806..d8414e0043 100644
--- a/base/shell/cmd/cmd.c
+++ b/base/shell/cmd/cmd.c
@@ -1424,7 +1424,7 @@ ReadLine(TCHAR *commandline, BOOL bMore)
             return FALSE;
         }
 
-        if (readline[0] == L'\0')
+        if (readline[0] == _T('\0'))
         {
             return FALSE;
         }
diff --git a/base/shell/cmd/cmdinput.c b/base/shell/cmd/cmdinput.c
index 09e5853608..9257cb6dda 100644
--- a/base/shell/cmd/cmdinput.c
+++ b/base/shell/cmd/cmdinput.c
@@ -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;
diff --git a/base/shell/cmd/start.c b/base/shell/cmd/start.c
index 5fe830787f..190ed39a6a 100644
--- a/base/shell/cmd/start.c
+++ b/base/shell/cmd/start.c
@@ -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++;

Reply via email to