From e9ab52c0aab6467ef23f702945a959d45eee9319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 20 May 2009 07:05:42 +0000 Subject: fixed typo and simplified ifdefs svn path=/trunk/externals/loaders/hexloader/; revision=11467 --- hexloader.c | 9 +++------ 1 file 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) { -- cgit v1.2.1