From: Vadim Zeitlin Date: Wed, 22 Oct 2003 21:40:04 +0000 (+0000) Subject: don't append spaces to all arguments in ConvertStringToArgs() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/93b79b6b57fdb427eecb8254af5bbb2831527041 don't append spaces to all arguments in ConvertStringToArgs() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp index 871cf5dbf2..2248a5b746 100644 --- a/src/common/cmdline.cpp +++ b/src/common/cmdline.cpp @@ -1153,7 +1153,7 @@ wxArrayString wxCmdLineParser::ConvertStringToArgs(const wxChar *p) { switch ( *p ) { - case _T('"'): + case _T('"'): if ( !lastBS ) { isInsideQuotes = !isInsideQuotes; @@ -1178,7 +1178,9 @@ wxArrayString wxCmdLineParser::ConvertStringToArgs(const wxChar *p) case _T('\0'): endParam = TRUE; - break; + + // exit from the loop directly, without changing arg + continue; } lastBS = *p == _T('\\');