Module: wine Branch: refs/heads/master Commit: d59fa772d552673f4aabf717228fe12821425c17 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d59fa772d552673f4aabf717...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Apr 21 16:16:11 2006 +0200
server: Ignore the SizeOfHeaders field and compute the correct size ourselves.
---
server/mapping.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/mapping.c b/server/mapping.c index e636ae8..22bf8a1 100644 --- a/server/mapping.c +++ b/server/mapping.c @@ -243,7 +243,7 @@ static int get_image_params( struct mapp
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 */