How to fix SizeOfImage when loading a builtin dll ?

Alexandre Julliard julliard at
Wed May 29 17:15:06 CDT 2002

Laurent Pinchart <laurent.pinchart at> writes:

> SafeDisc implements GetProcAddress internally, and verifies that the returned 
> address lies between ImageBase and ImageBase + SizeOfImage. It fails if it 
> doesn't.

In that case the easy way would be to take the highest address from
the export table and use that. It would actually be a pretty good
approximation. The correct way would be a linker script; this is
relatively easy to make work on one platform, but a bit more painful
to make work for all platforms.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list