diff options
author | notaz | 2012-04-29 19:23:09 +0300 |
---|---|---|
committer | notaz | 2012-04-29 19:32:08 +0300 |
commit | ac6575cdd93d665efc374c1a14b391c6a5308972 (patch) | |
tree | 835c3727018e98f2ec096cdec5560b12f6093f05 /frontend/main.c | |
parent | 4ea7de6a1495abfbc49c54fd2a90e902fdfa13d9 (diff) | |
download | pcsx_rearmed-ac6575cdd93d665efc374c1a14b391c6a5308972.tar.gz pcsx_rearmed-ac6575cdd93d665efc374c1a14b391c6a5308972.tar.bz2 pcsx_rearmed-ac6575cdd93d665efc374c1a14b391c6a5308972.zip |
fix some build issues and warnings
Diffstat (limited to 'frontend/main.c')
-rw-r--r-- | frontend/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/frontend/main.c b/frontend/main.c index dc5be3c..4ebcf34 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -730,9 +730,11 @@ void *SysLoadLibrary(const char *lib) { #if defined(__x86_64__) || defined(__i386__) // convenience hack - char name[MAXPATHLEN]; - snprintf(name, sizeof(name), "%s.x86", lib); - lib = name; + if (strstr(lib, ".x86") == NULL) { + char name[MAXPATHLEN]; + snprintf(name, sizeof(name), "%s.x86", lib); + lib = name; + } #endif ret = dlopen(lib, RTLD_NOW); |