From ff933ef4123f9cf4101ff5f6e117d5c4cf9c51ae Mon Sep 17 00:00:00 2001 From: kichik Date: Thu, 26 Dec 2002 22:04:54 +0000 Subject: [PATCH] Shortcuts can now have comments/descriptions without icon index and start options (leave blank - empty string - "") git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2004 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/script.cpp b/Source/script.cpp index ef5b639b..82995f8b 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -2443,14 +2443,14 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char ent.offsets[4]=line.gettoken_int(5,&s)&0xff; if (!s) { - if (line.getnumtokens() > 5) + if (line.getnumtokens() > 5 && *line.gettoken_str(5)) { ERROR_MSG("CreateShortCut: cannot interpret icon index\n"); PRINTHELP() } ent.offsets[4]=0; } - if (line.getnumtokens() > 6) + if (line.getnumtokens() > 6 && *line.gettoken_str(6)) { int tab[3]={SW_SHOWNORMAL,SW_SHOWMAXIMIZED,SW_SHOWMINNOACTIVE/*SW_SHOWMINIMIZED doesn't work*/}; int a=line.gettoken_enum(6,"SW_SHOWNORMAL\0SW_SHOWMAXIMIZED\0SW_SHOWMINIMIZED\0");