Commit d59fa772 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 8cd409fa
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment