diff --git a/Source/build.cpp b/Source/build.cpp index 3dbe6f8d..83206888 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -830,6 +830,8 @@ int CEXEBuild::add_db_data(IMMap *map) // returns offset } while (compressor->GetNextOut() - out > 0); + compressor->End(); + int used = bufferlen - avail_out; // never store compressed if output buffer is full (compression increased the size...) @@ -846,8 +848,6 @@ int CEXEBuild::add_db_data(IMMap *map) // returns offset else st = nst; } } - - compressor->End(); } #endif // NSIS_CONFIG_COMPRESSION_SUPPORT