fixed virtual address adjustment calculation
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4616 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
7ac37fe627
commit
668e245a5d
1 changed files with 1 additions and 0 deletions
|
@ -324,6 +324,7 @@ DWORD CResourceEditor::Save(BYTE* pbBuf, DWORD &dwSize) {
|
|||
// Save the old virtual size of the resource section
|
||||
DWORD dwNewVirtualSize = RALIGN(dwRsrcSize, dwSecAlign);
|
||||
DWORD dwOldVirtualSize = ConvertEndianness(sectionHeadersArray[m_dwResourceSectionIndex].Misc.VirtualSize);
|
||||
ALIGN(dwOldVirtualSize, dwSecAlign);
|
||||
DWORD dwVAAdjustment = dwNewVirtualSize - dwOldVirtualSize;
|
||||
|
||||
// Set the new size of the resource section (size aligned to FileAlignment)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue