Look for correct filename extension when loading native DLLs.

This commit is contained in:
Ryan C. Gordon 2005-12-05 01:11:41 +00:00
parent 24209ecec6
commit cfdd586ef8
2 changed files with 17 additions and 1 deletions

View file

@ -800,7 +800,7 @@ void *Sys_LoadDll( const char *name, char *fqpath ,
assert( name );
getcwd(curpath, sizeof(curpath));
snprintf (fname, sizeof(fname), "%s" ARCH_STRING ".so", name);
snprintf (fname, sizeof(fname), "%s" ARCH_STRING DLL_EXT, name);
// TODO: use fs_searchpaths from files.c
pwdpath = Sys_Cwd();