WATCOM compiled programs leave VirtualSize to zero which triggers the

virus check. Use SizeOfRawData instead.
This commit is contained in:
Niclas Karlsson MATE 2000-08-16 12:54:03 +00:00 committed by Alexandre Julliard
parent b44af64d30
commit 1918601e4c

View file

@ -521,7 +521,7 @@ HMODULE PE_LoadImage( HANDLE hFile, LPCSTR filename, DWORD flags )
{
if (nt->OptionalHeader.AddressOfEntryPoint < sec->VirtualAddress)
continue;
if (nt->OptionalHeader.AddressOfEntryPoint < sec->VirtualAddress+sec->Misc.VirtualSize)
if (nt->OptionalHeader.AddressOfEntryPoint < sec->VirtualAddress+sec->SizeOfRawData)
break;
}
if (i == nt->FileHeader.NumberOfSections)