Find the main winelib app with GetModuleHandle

Malte Starostik malte at
Thu Oct 17 16:48:19 CDT 2002

On Thursday 17 October 2002 23:44, Alexandre Julliard wrote:
> Malte Starostik <malte at> writes:
> > 	Check if the name passed to GetModuleHandle() is the name
> > 	of the main executable. As those normally don't have an extension
> > 	".DLL" was appended and the search failed.
> Actually you should give your executable a .exe extension, there are a
> number of places where we expect that (the Unix wrapper script doesn't
> need an extension of course, but the .so does).
Yes, I just came accross LoadLibraryEx() failing on it. Thanks for the info, 
will probably save quite some debugging time :-)

More information about the wine-devel mailing list