server: Don't round up the header size for image mappings.

This commit is contained in:
Alexandre Julliard 2006-01-11 20:59:26 +01:00
parent 9eae2d714d
commit b54e9e94e9
1 changed files with 1 additions and 5 deletions

View File

@ -105,9 +105,6 @@ static void init_page_size(void)
}
#endif /* __i386__ */
#define ROUND_SIZE_MASK(addr,size,mask) \
(((int)(size) + ((int)(addr) & (mask)) + (mask)) & ~(mask))
#define ROUND_SIZE(size) (((size) + page_mask) & ~page_mask)
@ -246,8 +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 = ROUND_SIZE_MASK( mapping->base, nt.OptionalHeader.SizeOfHeaders,
nt.OptionalHeader.SectionAlignment - 1 );
mapping->header_size = nt.OptionalHeader.SizeOfHeaders;
mapping->protect = VPROT_IMAGE;
/* sanity check */