diff options
author | Andrzej Janik <[email protected]> | 2021-01-03 17:54:01 +0100 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-01-03 17:54:01 +0100 |
commit | 659b2c6ec431c3f1103e700a20da4c66467aa35d (patch) | |
tree | 93966e595443fe7b571aef6af95b782788af31e8 /ext/detours/src/image.cpp | |
parent | 77523940b39d522adc26b18f00c3373407523c55 (diff) | |
parent | 4b96dbc8f49c5ae00c96935e0b576df88a5d8af9 (diff) | |
download | ZLUDA-659b2c6ec431c3f1103e700a20da4c66467aa35d.tar.gz ZLUDA-659b2c6ec431c3f1103e700a20da4c66467aa35d.zip |
Merge commit '4b96dbc8f49c5ae00c96935e0b576df88a5d8af9'
Diffstat (limited to 'ext/detours/src/image.cpp')
-rw-r--r-- | ext/detours/src/image.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/detours/src/image.cpp b/ext/detours/src/image.cpp index 96282d2..1599d2e 100644 --- a/ext/detours/src/image.cpp +++ b/ext/detours/src/image.cpp @@ -146,6 +146,8 @@ protected: DWORD m_cbAlloc; }; +class CImageImportName; + class CImageImportFile { friend class CImage; @@ -1693,7 +1695,7 @@ BOOL CImage::Write(HANDLE hFile) m_nNextFileAddr = Max(m_SectionHeaders[n].PointerToRawData + m_SectionHeaders[n].SizeOfRawData, m_nNextFileAddr); - // Old images have VirtualSize == 0 as a matter of course, e.g. NT 3.1.
+ // Old images have VirtualSize == 0 as a matter of course, e.g. NT 3.1. // In which case, use SizeOfRawData instead. m_nNextVirtAddr = Max(m_SectionHeaders[n].VirtualAddress + (m_SectionHeaders[n].Misc.VirtualSize |