fixed a bug when running makensisw from the command line

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1263 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
justin1014 2002-10-02 04:12:23 +00:00
parent 8d900e2fea
commit 280922d116

View file

@ -45,8 +45,8 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, char *cmdParam, int cmd
HACCEL haccel;
g_hInstance=GetModuleHandle(0);
g_script=GetCommandLine();
if (*g_script++=='"') while (*g_script++!='"');
else while (*g_script++!=' ');
if (*g_script=='"') { g_script++; while (*g_script!='"' && *g_script) g_script++; }
else while (*g_script!=' ' && *g_script) g_script++;
while (*g_script==' ') g_script++;
if (!InitBranding()) {
MessageBox(0,NSISERROR,"Error",MB_ICONEXCLAMATION|MB_OK);