Commit 1918601e authored by Niclas Karlsson MATE's avatar Niclas Karlsson MATE Committed by Alexandre Julliard

WATCOM compiled programs leave VirtualSize to zero which triggers the

virus check. Use SizeOfRawData instead.
parent b44af64d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment