Skip to content
Snippets Groups Projects
Commit 68822146 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard
Browse files

Only append .dll if no extension yet.

parent 6a6f6e24
No related branches found
Tags wine-990103
No related merge requests found
......@@ -697,7 +697,10 @@ static BOOL32 NE_LoadDLLs( NE_MODULE *pModule )
char buffer[260];
BYTE *pstr = (BYTE *)pModule + pModule->import_table + *pModRef;
memcpy( buffer, pstr + 1, *pstr );
strcpy( buffer + *pstr, ".dll" );
*(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" );
TRACE(module, "Loading '%s'\n", buffer );
if (!(*pModRef = GetModuleHandle16( buffer )))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment