Plugin calls no longer adds size to the section containing them. They are temporary files and shouldn't add size.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1448 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
51597cf10f
commit
3f8a5ccdcc
1 changed files with 2 additions and 2 deletions
|
@ -3530,7 +3530,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
|||
int files_added;
|
||||
int old_build_overwrite=build_overwrite;
|
||||
build_overwrite=1;
|
||||
ret=do_add_file(dllPath,0,0,0,&files_added,tempDLL);
|
||||
ret=do_add_file(dllPath,0,0,0,&files_added,tempDLL,2); // 2 means no size add
|
||||
if (ret != PS_OK) return ret;
|
||||
build_overwrite=old_build_overwrite;
|
||||
|
||||
|
@ -3733,7 +3733,7 @@ int CEXEBuild::do_add_file(const char *lgss, int attrib, int recurse, int linecn
|
|||
}
|
||||
}
|
||||
|
||||
if (generatecode)
|
||||
if (generatecode&1)
|
||||
section_add_size_kb((len+1023)/1024);
|
||||
if (name_override) SCRIPT_MSG("%sFile: \"%s\"->\"%s\"",generatecode?"":"Reserve",d.cFileName,name_override);
|
||||
else SCRIPT_MSG("%sFile: \"%s\"",generatecode?"":"Reserve",d.cFileName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue