"foo" was not translated to "foo.so" in elf loader.
This commit is contained in:
parent
d8379a64cc
commit
9c6735e6a2
10
loader/elf.c
10
loader/elf.c
|
@ -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? */
|
||||||
|
|
Loading…
Reference in New Issue