AdjustVA() returns new value instead of changing it, so the sectionHeadersArray[i].PointerToRawData has not been fixed actually.
This bug doesn't affect the installer building.
--- ResourceEditor.cpp (revision 6119)
+++ ResourceEditor.cpp (working copy)
@@ -466,7 +466,7 @@
PIMAGE_DATA_DIRECTORY pDataDirectory = *GetMemberFromOptionalHeader(ntHeaders->OptionalHeader, DataDirectory);
for (i = m_dwResourceSectionIndex + 1; i < wNumberOfSections; i++) {
if (sectionHeadersArray[i].PointerToRawData) {
- AdjustVA(sectionHeadersArray[i].PointerToRawData, dwRsrcSizeAligned - dwOldRsrcSize);
+ sectionHeadersArray[i].PointerToRawData = AdjustVA(sectionHeadersArray[i].PointerToRawData, dwRsrcSizeAligned - dwOldRsrcSize);
}
// We must find the right data directory entry before we change the virtual address
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
patch for ResourceEditor.cpp