Frédéric Delanoy : cmd: Fix some comments.

Alexandre Julliard julliard at winehq.org
Wed Jul 27 13:25:26 CDT 2011


Module: wine
Branch: master
Commit: 8b73720d4e587c4b4e08d624b2dfd632ce6d3b01
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8b73720d4e587c4b4e08d624b2dfd632ce6d3b01

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Wed Jul 27 02:21:01 2011 +0200

cmd: Fix some comments.

---

 programs/cmd/wcmd.h     |    2 +-
 programs/cmd/wcmdmain.c |   10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/programs/cmd/wcmd.h b/programs/cmd/wcmd.h
index 1bf0485..939e404 100644
--- a/programs/cmd/wcmd.h
+++ b/programs/cmd/wcmd.h
@@ -151,7 +151,7 @@ typedef struct _DIRECTORY_STACK
 
 /*
  *	Serial nos of builtin commands. These constants must be in step with
- *	the list of strings defined in WCMD.C, and WCMD_EXIT *must* always be
+ *	the list of strings defined in wcmd.rc, and WCMD_EXIT *must* always be
  *	the last one.
  *
  *	Yes it *would* be nice to use an enumeration here, but the Resource
diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index bd572d2..f3fa129 100644
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -903,8 +903,8 @@ static void init_msvcrt_io_block(STARTUPINFOW* st)
     if (st_p.cbReserved2 && st_p.lpReserved2)
     {
         /* Override the entries for fd 0,1,2 if we happened
-         * to change those std handles (this depends on the way wcmd sets
-         * it's new input & output handles)
+         * to change those std handles (this depends on the way cmd sets
+         * its new input & output handles)
          */
         size_t sz = max(sizeof(unsigned) + (sizeof(char) + sizeof(HANDLE)) * 3, st_p.cbReserved2);
         BYTE* ptr = HeapAlloc(GetProcessHeap(), 0, sz);
@@ -1661,7 +1661,7 @@ static void WCMD_addCommand(WCHAR *command, int *commandLen,
 /***************************************************************************
  * WCMD_IsEndQuote
  *
- *   Checks if the quote pointet to is the end-quote.
+ *   Checks if the quote pointed to is the end-quote.
  *
  *   Quotes end if:
  *
@@ -1716,7 +1716,7 @@ static BOOL WCMD_IsEndQuote(WCHAR *quote, int quoteIndex)
  *
  *   Either uses supplied input or
  *     Reads a file from the handle, and then...
- *   Parse the text buffer, spliting into separate commands
+ *   Parse the text buffer, splitting into separate commands
  *     - unquoted && strings split 2 commands but the 2nd is flagged as
  *            following an &&
  *     - ( as the first character just ups the bracket depth
@@ -2422,7 +2422,7 @@ int wmain (int argc, WCHAR *argvW[])
   }
 
   if (opt_c) {
-      /* If we do a "wcmd /c command", we don't want to allocate a new
+      /* If we do a "cmd /c command", we don't want to allocate a new
        * console since the command returns immediately. Rather, we use
        * the currently allocated input and output handles. This allows
        * us to pipe to and read from the command interpreter.




More information about the wine-cvs mailing list