diff --git a/pe.c b/pe.c index f94530a20..9a3679e16 100644 --- a/pe.c +++ b/pe.c @@ -1259,7 +1259,7 @@ handle_image (void *data, unsigned int datasize, } if (Section->VirtualAddress <= context.EntryPoint && - (Section->VirtualAddress + Section->SizeOfRawData - 1) + (Section->VirtualAddress + Section->Misc.VirtualSize - 1) > context.EntryPoint) found_entry_point++;