mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 17:43:44 +00:00
server: Ignore the SizeOfHeaders field and compute the correct size ourselves.
This commit is contained in:
parent
8cd409facf
commit
d59fa772d5
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue