krnl386.exe16: Shared libraries have a ".exe" rather than ".dll" extension on Windows < 3.0.
Signed-off-by: Martin Payne <development@martinpayne.me.uk> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e562d4de81
commit
4a8834f6ce
|
@ -788,9 +788,9 @@ static BOOL NE_LoadDLLs( NE_MODULE *pModule )
|
||||||
/* its handle in the list of DLLs to initialize. */
|
/* its handle in the list of DLLs to initialize. */
|
||||||
HMODULE16 hDLL;
|
HMODULE16 hDLL;
|
||||||
|
|
||||||
/* Append .DLL to name if no extension present */
|
/* Append .DLL (Windows >= 3.00) or .EXE (Windows < 3.00) to name if no extension present */
|
||||||
if (!(p = strrchr( buffer, '.')) || strchr( p, '/' ) || strchr( p, '\\'))
|
if (!(p = strrchr( buffer, '.')) || strchr( p, '/' ) || strchr( p, '\\'))
|
||||||
strcat( buffer, ".DLL" );
|
strcat( buffer, (GetExeVersion16() >= 0x0300) ? ".DLL" : ".EXE" );
|
||||||
|
|
||||||
if ((hDLL = MODULE_LoadModule16( buffer, TRUE, TRUE )) < 32)
|
if ((hDLL = MODULE_LoadModule16( buffer, TRUE, TRUE )) < 32)
|
||||||
{
|
{
|
||||||
|
@ -988,7 +988,7 @@ static HINSTANCE16 MODULE_LoadModule16( LPCSTR libname, BOOL implicit, BOOL lib_
|
||||||
|
|
||||||
strcpy( dllname, basename );
|
strcpy( dllname, basename );
|
||||||
q = strrchr( dllname, '.' );
|
q = strrchr( dllname, '.' );
|
||||||
if (!q) strcat( dllname, ".dll" );
|
if (!q) strcat( dllname, (GetExeVersion16() >= 0x0300) ? ".dll" : ".exe" );
|
||||||
for (q = dllname; *q; q++) if (*q >= 'A' && *q <= 'Z') *q += 32;
|
for (q = dllname; *q; q++) if (*q >= 'A' && *q <= 'Z') *q += 32;
|
||||||
|
|
||||||
strcpy( q, "16" );
|
strcpy( q, "16" );
|
||||||
|
|
Loading…
Reference in New Issue