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
This commit is contained in:
parent
5250725149
commit
ff933ef412
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue