Marcus Boillat <ka6602-280@online.de>
authorAleksey Bragin <aleksey@reactos.org>
Tue, 5 Jan 2010 16:18:35 +0000 (16:18 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Tue, 5 Jan 2010 16:18:35 +0000 (16:18 +0000)
- ipconfig should also parse parameters starting with "-" (undocumented feature, tested on Windows XP, Vista and Windows 7).
See issue #5067 for more details.

svn path=/trunk/; revision=44946

reactos/base/applications/network/ipconfig/ipconfig.c

index 4d7bff7..8f6ca9a 100644 (file)
@@ -693,7 +693,7 @@ int main(int argc, char *argv[])
     ProcessHeap = GetProcessHeap();
 
     /* Parse command line for options we have been given. */
-    if ( (argc > 1)&&(argv[1][0]=='/') )
+    if ( (argc > 1)&&(argv[1][0]=='/' || argv[1][0]=='-') )
     {
         if( !_tcsicmp( &argv[1][1], _T("?") ))
         {