Take virtual sizes in account for the total vma size.

This commit is contained in:
Marcus Meissner 1998-10-22 15:52:36 +00:00 committed by Alexandre Julliard
parent b8d54e912d
commit 2958416d83
1 changed files with 2 additions and 1 deletions

View File

@ -370,6 +370,7 @@ static int calc_vma_size( HMODULE32 hModule )
pe_seg->NumberOfLinenumbers, pe_seg->NumberOfLinenumbers,
pe_seg->Characteristics); pe_seg->Characteristics);
vma_size=MAX(vma_size, pe_seg->VirtualAddress+pe_seg->SizeOfRawData); vma_size=MAX(vma_size, pe_seg->VirtualAddress+pe_seg->SizeOfRawData);
vma_size=MAX(vma_size, pe_seg->VirtualAddress+pe_seg->Misc.VirtualSize);
pe_seg++; pe_seg++;
} }
return vma_size; return vma_size;