Skip to content
Snippets Groups Projects
Commit a4bd79f7 authored by Andy Shaw's avatar Andy Shaw Committed by Oswald Buddenhagen
Browse files

Ensure first quote is accounted for when stripping the command itself


When the command line was processed to remove the call itself, it would
not be removed correctly if it was quoted because it would not see the
first quote.

Task-number: QTCREATORBUG-7656

Change-Id: I016b1534e14563ddd8cadad8c0effcd6b4a9203b
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@nokia.com>
parent cebf6b93
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ int main(int argc, char **)
// Get the command line and remove the call to this executable.
wchar_t *strCommandLine = _wcsdup(GetCommandLine());
const size_t strCommandLineLength = wcslen(strCommandLine);
size_t pos = 1;
size_t pos = 0;
bool quoted = false;
while (pos < strCommandLineLength) {
if (strCommandLine[pos] == L'"') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment