Fixed running from context menu

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1268 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
rainwater 2002-10-02 12:02:48 +00:00
parent f2bfa2b4b9
commit e4e5a03c3c

View file

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