"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,12 +120,16 @@ HMODULE ELF_LoadLibraryExA( LPCSTR libname, HANDLE hf, DWORD flags )
x = t+strlen(t); x = t+strlen(t);
strcat(t,s); strcat(t,s);
s = strchr(x,'.'); s = strchr(x,'.');
while (s) { if (s) {
while (s) {
if (!strcasecmp(s,".dll")) { if (!strcasecmp(s,".dll")) {
strcpy(s+1,UNIX_DLL_ENDING); strcpy(s+1,UNIX_DLL_ENDING);
break; break;
} }
s=strchr(s+1,'.'); s=strchr(s+1,'.');
}
} else {
strcat(x,"."UNIX_DLL_ENDING);
} }
/* FIXME: make UNIX filename from DOS fn? */ /* FIXME: make UNIX filename from DOS fn? */