Major POSIX overhaul
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6416 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
1e55e30ff4
commit
be6c7e6a1d
35 changed files with 1718 additions and 1412 deletions
|
@ -16,6 +16,7 @@
|
|||
* Unicode support and Doxygen comments by Jim Park -- 07/31/2007
|
||||
*/
|
||||
|
||||
#include "Platform.h"
|
||||
#include "growbuf.h"
|
||||
|
||||
#include <cstdlib> // for malloc/free
|
||||
|
@ -25,7 +26,6 @@
|
|||
#include "tchar.h"
|
||||
#include "util.h"
|
||||
|
||||
#include "Platform.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -88,7 +88,7 @@ void GrowBuf::resize(int newlen)
|
|||
memset((BYTE*)m_s + ou, 0, m_used - ou);
|
||||
|
||||
if (!m_used && m_alloc > 2*m_bs) // only free if you resize to 0 and we're > 64k or
|
||||
// 2K in the case of TinyGrowBuf
|
||||
// 2K in the case of TinyGrowBuf
|
||||
{
|
||||
m_alloc=0;
|
||||
free(m_s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue