60 bytes saved.

zlib exehead is now 35.5K.


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1172 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
eccles 2002-09-24 23:26:55 +00:00
parent 9ebe478bba
commit 83a4213bfb
4 changed files with 31 additions and 19 deletions

View file

@ -1355,8 +1355,8 @@ static int NSISCALL ExecuteEntry(entry *entry_)
if (filebuf)
{
int fixoffs=0;
SetFilePointer(g_db_hFile,0,NULL,FILE_BEGIN);
ReadFile(g_db_hFile,(char*)filebuf,g_filehdrsize,&l,NULL);
SetSelfFilePointer(0,FILE_BEGIN);
ReadSelfFile((char*)filebuf,g_filehdrsize,&l);
if (g_inst_header->uninstdata_offset != -1)
{
// Changed by Amir Szekely 11th July 2002