mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 13:27:35 +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
1 changed files with 1 additions and 1 deletions
|
@ -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