mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:30:58 +00:00
server: Ignore the SizeOfHeaders field and compute the correct size ourselves.
This commit is contained in:
parent
8cd409facf
commit
d59fa772d5
|
@ -243,7 +243,7 @@ static int get_image_params( struct mapping *mapping )
|
|||
|
||||
mapping->size = ROUND_SIZE( nt.OptionalHeader.SizeOfImage );
|
||||
mapping->base = (void *)nt.OptionalHeader.ImageBase;
|
||||
mapping->header_size = nt.OptionalHeader.SizeOfHeaders;
|
||||
mapping->header_size = pos + size;
|
||||
mapping->protect = VPROT_IMAGE;
|
||||
|
||||
/* sanity check */
|
||||
|
|
Loading…
Reference in a new issue