applied patch #1948700 - support for files between 1.6 and 2 GB
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5620 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
35c097b448
commit
edff962162
1 changed files with 4 additions and 1 deletions
|
@ -721,7 +721,10 @@ int CEXEBuild::add_db_data(IMMap *mmap) // returns offset
|
|||
{
|
||||
// grow datablock so that there is room to compress into
|
||||
int bufferlen = length + 1024 + length / 4; // give a nice 25% extra space
|
||||
db->resize(st + bufferlen + sizeof(int));
|
||||
if (bufferlen < 0) // too much data... try allocating as much as possible
|
||||
db->resize(max(st, 0x7fffffff));
|
||||
else
|
||||
db->resize(st + bufferlen + sizeof(int));
|
||||
|
||||
int n = compressor->Init(build_compress_level, build_compress_dict_size);
|
||||
if (n != C_OK)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue