Only append .dll if no extension yet.
This commit is contained in:
parent
6a6f6e247c
commit
688221460b
|
@ -697,6 +697,9 @@ static BOOL32 NE_LoadDLLs( NE_MODULE *pModule )
|
||||||
char buffer[260];
|
char buffer[260];
|
||||||
BYTE *pstr = (BYTE *)pModule + pModule->import_table + *pModRef;
|
BYTE *pstr = (BYTE *)pModule + pModule->import_table + *pModRef;
|
||||||
memcpy( buffer, pstr + 1, *pstr );
|
memcpy( buffer, pstr + 1, *pstr );
|
||||||
|
*(buffer + *pstr) = 0; /* terminate it */
|
||||||
|
if (!strchr(buffer,'.')) /* only append .dll if no extension yet.
|
||||||
|
handles a request for krnl386.exe*/
|
||||||
strcpy( buffer + *pstr, ".dll" );
|
strcpy( buffer + *pstr, ".dll" );
|
||||||
TRACE(module, "Loading '%s'\n", buffer );
|
TRACE(module, "Loading '%s'\n", buffer );
|
||||||
if (!(*pModRef = GetModuleHandle16( buffer )))
|
if (!(*pModRef = GetModuleHandle16( buffer )))
|
||||||
|
|
Loading…
Reference in New Issue