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:
parent
8d900e2fea
commit
280922d116
1 changed files with 2 additions and 2 deletions
|
@ -45,8 +45,8 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, char *cmdParam, int cmd
|
||||||
HACCEL haccel;
|
HACCEL haccel;
|
||||||
g_hInstance=GetModuleHandle(0);
|
g_hInstance=GetModuleHandle(0);
|
||||||
g_script=GetCommandLine();
|
g_script=GetCommandLine();
|
||||||
if (*g_script++=='"') while (*g_script++!='"');
|
if (*g_script=='"') { g_script++; while (*g_script!='"' && *g_script) g_script++; }
|
||||||
else while (*g_script++!=' ');
|
else while (*g_script!=' ' && *g_script) g_script++;
|
||||||
while (*g_script==' ') g_script++;
|
while (*g_script==' ') g_script++;
|
||||||
if (!InitBranding()) {
|
if (!InitBranding()) {
|
||||||
MessageBox(0,NSISERROR,"Error",MB_ICONEXCLAMATION|MB_OK);
|
MessageBox(0,NSISERROR,"Error",MB_ICONEXCLAMATION|MB_OK);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue