applied patch #1611866 - Fix MMapFile::release(void *pView, int size)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4843 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-12-09 15:17:24 +00:00
parent 4ca1f6d04b
commit ae3373311e
4 changed files with 14 additions and 13 deletions

View file

@ -614,13 +614,12 @@ int CEXEBuild::datablock_optimize(int start_offset, int first_int)
while (left > 0)
{
int l = min(left, build_filebuflen);
int la = l;
void *newstuff = db->get(start_offset + this_len - left, l);
void *oldstuff = db->getmore(pos + this_len - left, &la);
void *oldstuff = db->getmore(pos + this_len - left, l);
int res = memcmp(newstuff, oldstuff, l);
db->release(oldstuff, la);
db->release(oldstuff, l);
db->release();
if (res)