From 051fd2a73c9b8b16b551d30c3b995e979e4ecd4b Mon Sep 17 00:00:00 2001 From: kichik Date: Mon, 12 May 2003 16:12:48 +0000 Subject: [PATCH] Wrong boundary git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2549 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/util.cpp b/Source/util.cpp index 460dc160..c093a126 100644 --- a/Source/util.cpp +++ b/Source/util.cpp @@ -282,7 +282,7 @@ int generate_unicons_offsets(unsigned char* exeHeader, unsigned char* uninstIcon DWORD dwNextSection; if (i == ntHeaders->FileHeader.NumberOfSections - 1) - dwNextSection = exeheader_size; + dwNextSection = ntHeaders->OptionalHeader.SizeOfImage; else dwNextSection = sectionHeadersArray[i+1].PointerToRawData;