aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-05-20 07:05:42 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-05-20 07:05:42 +0000
commite9ab52c0aab6467ef23f702945a959d45eee9319 (patch)
treeb48586e84596f788c9d217570c6ef3f4d8a3edfb
parentfb4a845ef8dffe59b3970a97ed98b2f0cd87a7f9 (diff)
fixed typo and simplified ifdefs
svn path=/trunk/externals/loaders/hexloader/; revision=11467
-rw-r--r--hexloader.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/hexloader.c b/hexloader.c
index 5a5e663..557da89 100644
--- a/hexloader.c
+++ b/hexloader.c
@@ -518,9 +518,6 @@ static filelist_t*hexloader_getalternatives(char*org) {
}
static int hexloader_doload(char*filename, char*setupfun) {
-#ifdef __WIN32__
- HINSTANCE ntdll;
-#endif
t_hexloader_setup makeout=0;
#ifdef DL_OPEN
@@ -532,8 +529,8 @@ static int hexloader_doload(char*filename, char*setupfun) {
return (0);
}
makeout = (t_hexloader_setup)dlsym(dlobj, setupfun);
-#endif
-#ifdef __WIN32__
+#elif defined __WIN32__
+ HINSTANCE ntdll;
sys_bashfilename(filename, filename);
ntdll = LoadLibrary(filename);
if (!ntdll)
@@ -704,7 +701,7 @@ static t_filepath*hexloader_trypatches(filelist_t*altnames0, char*classname) {
/**
* this is the actual loader:
* we first try to load an external with alternative (hexified) names
- * if this fails, we fall back to load a patch with athese names
+ * if this fails, we fall back to load a patch with these names
*/
static int hexloader_doloader(t_canvas *canvas, filelist_t*altnames0, char*classname)
{