Marcus Boillat <ka6602-280@online.de>

- 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
This commit is contained in:
Aleksey Bragin 2010-01-05 16:18:35 +00:00
parent c2773414b9
commit a5a0bfbeb2

View 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("?") ))
{