Commit 9c6735e6 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

parent d8379a64
......@@ -120,12 +120,16 @@ HMODULE ELF_LoadLibraryExA( LPCSTR libname, HANDLE hf, DWORD flags )
x = t+strlen(t);
strcat(t,s);
s = strchr(x,'.');
while (s) {
if (s) {
while (s) {
if (!strcasecmp(s,".dll")) {
strcpy(s+1,UNIX_DLL_ENDING);
break;
strcpy(s+1,UNIX_DLL_ENDING);
break;
}
s=strchr(s+1,'.');
}
} else {
strcat(x,"."UNIX_DLL_ENDING);
}
/* FIXME: make UNIX filename from DOS fn? */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment