From 3f5895180877974021cf38ce5606e492541405ab Mon Sep 17 00:00:00 2001 From: janwas Date: Sat, 8 Sep 2007 08:37:30 +0000 Subject: [PATCH] arg parsing code: wasn't properly handling " This was SVN commit r5337. --- source/lib/sysdep/win/wutil.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/lib/sysdep/win/wutil.cpp b/source/lib/sysdep/win/wutil.cpp index 93a550c97a..cc73be6a31 100644 --- a/source/lib/sysdep/win/wutil.cpp +++ b/source/lib/sysdep/win/wutil.cpp @@ -174,6 +174,7 @@ static void ReadCommandLine() // strip the " character memmove(argvContents+i, argvContents+i+1, numChars-i); numChars--; + i--; break; case ' ': @@ -185,6 +186,7 @@ static void ReadCommandLine() break; } } + wutil_argc++; // have argv entries point into the tokenized string wutil_argv = (char**)HeapAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, wutil_argc*sizeof(char*));