Merge branch 'main' into dev/p2s-pr

This commit is contained in:
Noisyfox committed 2025-10-30 15:04:18 +08:00
commit 95a6a8c0c5
8 files changed
+37 -10

No files matched your search

+1 -1
View File
@@ -319,7 +319,7 @@ BOOL CBaseException::GetLogicalAddress(
for (unsigned i = 0; i < pNtHdr->FileHeader.NumberOfSections; i++, pSection++ )
{
DWORD sectionStart = pSection->VirtualAddress;
DWORD sectionEnd = sectionStart + max(pSection->SizeOfRawData, pSection->Misc.VirtualSize);
DWORD sectionEnd = sectionStart + std::max(pSection->SizeOfRawData, pSection->Misc.VirtualSize);
if ( (rva >= sectionStart) && (rva <= sectionEnd) )
{