From d59fa772d552673f4aabf717228fe12821425c17 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 21 Apr 2006 16:16:11 +0200 Subject: [PATCH] server: Ignore the SizeOfHeaders field and compute the correct size ourselves. --- server/mapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/mapping.c b/server/mapping.c index e636ae864c1..22bf8a13c30 100644 --- a/server/mapping.c +++ b/server/mapping.c @@ -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 */