From ff74ffb34b97cacde2039cbb0d4c097cd685e317 Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 4 Feb 2004 22:40:36 +0000 Subject: [PATCH] fixed $CMDLINE corruption (thanks eccles) git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3463 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/exehead/Main.c b/Source/exehead/Main.c index 63236bce..0bd7a7ae 100644 --- a/Source/exehead/Main.c +++ b/Source/exehead/Main.c @@ -111,9 +111,9 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam, while (*cmdline) { // skip over any spaces - while (*cmdline == ' ') cmdline=CharNext(cmdline); + while (*cmdline == ' ') cmdline++; // find out if this parm is quoted - if (cmdline[0] == '"') + if (cmdline[0] == '\"') { cmdline++; seekchar = '\"'; @@ -146,7 +146,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam, // skip over our parm cmdline = findchar(cmdline, seekchar); // skip the quote - if (*cmdline = '\"') + if (*cmdline == '\"') cmdline++; }