| commit | 9c6735e6a27c79f162c0a95427e564ae5ccef008 | [log] [tgz] |
|---|---|---|
| author | Marcus Meissner <marcus@mud.de> | Thu Apr 01 10:09:46 1999 +0000 |
| committer | Alexandre Julliard <julliard@winehq.org> | Thu Apr 01 10:09:46 1999 +0000 |
| tree | 8645ee76846c5afbdd165f5e9ddbbd733a704049 | |
| parent | d8379a64ccc3be8ab8aa139f101b9b521b591f76 [diff] [blame] |
"foo" was not translated to "foo.so" in elf loader.
diff --git a/loader/elf.c b/loader/elf.c index 853ae06..c2b1fb4 100644 --- a/loader/elf.c +++ b/loader/elf.c
@@ -120,12 +120,16 @@ 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? */