Fix unit tests (#11199)

* Fix tests build issue on Windows

* Fix `Http digest authentication` 404 error

* Fix `libnest2d_tests` missing dlls on Windows
This commit is contained in:
Noisyfox
2025-10-30 14:36:24 +08:00
committed by GitHub
parent b9ab8e55be
commit 99863163b2
8 changed files with 37 additions and 10 deletions

View File

@@ -314,7 +314,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) )
{