"foo" was not translated to "foo.so" in elf loader.

This commit is contained in:
Marcus Meissner 1999-04-01 10:09:46 +00:00 committed by Alexandre Julliard
parent d8379a64cc
commit 9c6735e6a2
1 changed files with 7 additions and 3 deletions

View File

@ -120,6 +120,7 @@ HMODULE ELF_LoadLibraryExA( LPCSTR libname, HANDLE hf, DWORD flags )
x = t+strlen(t);
strcat(t,s);
s = strchr(x,'.');
if (s) {
while (s) {
if (!strcasecmp(s,".dll")) {
strcpy(s+1,UNIX_DLL_ENDING);
@ -127,6 +128,9 @@ HMODULE ELF_LoadLibraryExA( LPCSTR libname, HANDLE hf, DWORD flags )
}
s=strchr(s+1,'.');
}
} else {
strcat(x,"."UNIX_DLL_ENDING);
}
/* FIXME: make UNIX filename from DOS fn? */