mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 20:49:46 +00:00
WATCOM compiled programs leave VirtualSize to zero which triggers the
virus check. Use SizeOfRawData instead.
This commit is contained in:
parent
b44af64d30
commit
1918601e4c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue