server: Ignore the SizeOfHeaders field and compute the correct size ourselves.

This commit is contained in:
Alexandre Julliard 2006-04-21 16:16:11 +02:00
parent 8cd409facf
commit d59fa772d5

View file

@ -243,7 +243,7 @@ static int get_image_params( struct mapping *mapping )
mapping->size = ROUND_SIZE( nt.OptionalHeader.SizeOfImage ); mapping->size = ROUND_SIZE( nt.OptionalHeader.SizeOfImage );
mapping->base = (void *)nt.OptionalHeader.ImageBase; mapping->base = (void *)nt.OptionalHeader.ImageBase;
mapping->header_size = nt.OptionalHeader.SizeOfHeaders; mapping->header_size = pos + size;
mapping->protect = VPROT_IMAGE; mapping->protect = VPROT_IMAGE;
/* sanity check */ /* sanity check */