Skip to content
Snippets Groups Projects
Commit 2958416d authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

Take virtual sizes in account for the total vma size.

parent b8d54e91
No related branches found
No related tags found
No related merge requests found
......@@ -369,7 +369,8 @@ static int calc_vma_size( HMODULE32 hModule )
pe_seg->NumberOfRelocations,
pe_seg->NumberOfLinenumbers,
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++;
}
return vma_size;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment