Author: cwittich Date: Sat Feb 2 14:03:43 2008 New Revision: 32085
URL: http://svn.reactos.org/svn/reactos?rev=32085&view=rev Log: display short version info for "ver" as default use /c, /r or /w to get more details
Modified: trunk/reactos/base/shell/cmd/ver.c
Modified: trunk/reactos/base/shell/cmd/ver.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/ver.c?rev=32... ============================================================================== --- trunk/reactos/base/shell/cmd/ver.c (original) +++ trunk/reactos/base/shell/cmd/ver.c Sat Feb 2 14:03:43 2008 @@ -72,17 +72,14 @@ }
ShortVersion(); - ConOutPuts (_T("Copyright (C) 1994-1998 Tim Norman and others.")); - ConOutPuts (_T("Copyright (C) 1998-" COPYRIGHT_YEAR " ReactOS Team"));
/* Basic copyright notice */ - if (param[0] == _T('\0')) + if (param[0] != _T('\0')) { - ConOutResPuts (STRING_CMD_SHELLINFO ); - ConOutResPuts(STRING_VERSION_HELP2); - } - else - { + + ConOutPuts (_T("Copyright (C) 1994-1998 Tim Norman and others.")); + ConOutPuts (_T("Copyright (C) 1998-" COPYRIGHT_YEAR " ReactOS Team")); + for (i = 0; param[i]; i++) { /* skip spaces */ @@ -124,9 +121,8 @@ return 1; } } + ConOutResPuts(STRING_VERSION_HELP5); } - - ConOutResPuts(STRING_VERSION_HELP5); return 0; }