How to fix SizeOfImage when loading a builtin dll ?

Laurent Pinchart laurent.pinchart at
Mon May 27 17:08:46 CDT 2002

Hi everybody,

I noticed that, when a builtin dll (.so) is loaded, the SizeOfImage field in 
the OptionalHeader is not updated and stays equal to page_size (see 
winebuild, spec32).

I need to get the correct value in SizeOfImage.

I thought about updating that field in map_dll at library/loader.c, but don't 
know how to get the size of the image.

Could anyone help me ? I'm not familiar with the PE loader.

Thanks in advance,

Laurent Pinchart

More information about the wine-devel mailing list