- lzma exehead is now 34kb instead of 34.5kb thanks to the new LZMA C SDK and should be much faster due to removal of critical section usage (not tested too much, test before usage)
- applied some parts of patch #875485 git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3508 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
ca9582c925
commit
d18cea205c
23 changed files with 761 additions and 1267 deletions
|
@ -13,7 +13,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef NSIS_COMPRESS_USE_LZMA
|
||||
#include "../7zip/lzmaNSIS.h"
|
||||
#include "../7zip/LZMADecode.h"
|
||||
#define z_stream CLZMAState
|
||||
#define inflateInit(x) lzmaInit(x)
|
||||
#define inflateReset(x) lzmaInit(x)
|
||||
|
@ -352,12 +352,6 @@ int NSISCALL _dodecomp(int offset, HANDLE hFileOut, char *outbuf, int outbuflen)
|
|||
{
|
||||
int u;
|
||||
|
||||
#ifdef NSIS_COMPRESS_USE_LZMA
|
||||
// lzma decompressor doesn't like to stay dry
|
||||
if (!g_inflate_stream.avail_in && input_len)
|
||||
break;
|
||||
#endif
|
||||
|
||||
g_inflate_stream.next_out = outbuffer;
|
||||
g_inflate_stream.avail_out = (unsigned int)outbuffer_len;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue