--------------Boundary-00=_DHIY9LN581AFVL0EJ0IY Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit On Dienstag, 12. Juni 2001 04:20, you wrote: > Hi, > > The Shockwave ActiveX control I'm loading tries to read the VERSIONINFO > resource from my winelib app. AFAICS it subsequently crashes because that > fails. Basically the problem is that MODULE_FindModule() appends .DLL if there is no extension, which is wrong in case of the passed filename being an extension-less winelib app. This patch fixes that, might not be the cleanest approach though. Just an idea for the enlightened :) -Malte -- Wars don't determine who's right, only who's left. --------------Boundary-00=_DHIY9LN581AFVL0EJ0IY Content-Type: text/x-c; charset="iso-8859-1"; name="loader.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="loader.diff" Index: module.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/wine/wine/loader/module.c,v retrieving revision 1.129 diff -u -3 -d -p -r1.129 module.c --- module.c=092001/06/06 20:24:12=091.129 +++ module.c=092001/06/15 05:28:18 @@ -449,6 +449,16 @@ WINE_MODREF *MODULE_FindModule( WINE_MODREF=09*wm; char dllname[260], *p; =20 + /* Check if path is the main exe module */ + if ( exe_modref ) + { + if ( !FILE_strcasecmp( path, exe_modref->modname ) || + !FILE_strcasecmp( path, exe_modref->filename ) || + !FILE_strcasecmp( path, exe_modref->short_modname ) || + !FILE_strcasecmp( path, exe_modref->short_filename ) ) + return exe_modref; + } + /* Append .DLL to name if no extension present */ strcpy( dllname, path ); if (!(p =3D strrchr( dllname, '.')) || strchr( p, '/' ) || strchr( p= , '\\')) --------------Boundary-00=_DHIY9LN581AFVL0EJ0IY--