fixed bug #1380447 - Abnormal program termination while writing the uninstaller

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4443 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-12-15 18:47:23 +00:00
parent 2e65882daa
commit 2822e9a3ab

View file

@ -390,6 +390,7 @@ int MMapBuf::add(const void *data, int len)
if (len <= 0) return 0;
resize(getlen() + len);
memcpy((char*)get(getlen() - len, len), data, len);
release();
return getlen() - len;
}