Merge remote-tracking branch 'origin/2.5' into 2.6

This commit is contained in:
Eike Ziller
2012-07-25 14:28:20 +02:00

View File

@@ -84,7 +84,7 @@ int main(int argc, char **)
// Get the command line and remove the call to this executable. // Get the command line and remove the call to this executable.
wchar_t *strCommandLine = _wcsdup(GetCommandLine()); wchar_t *strCommandLine = _wcsdup(GetCommandLine());
const size_t strCommandLineLength = wcslen(strCommandLine); const size_t strCommandLineLength = wcslen(strCommandLine);
size_t pos = 1; size_t pos = 0;
bool quoted = false; bool quoted = false;
while (pos < strCommandLineLength) { while (pos < strCommandLineLength) {
if (strCommandLine[pos] == L'"') { if (strCommandLine[pos] == L'"') {