summaryrefslogtreecommitdiffstats
path: root/common/dynload.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/dynload.h')
-rw-r--r--common/dynload.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/common/dynload.h b/common/dynload.h
index f6ec8753b..6ac7b4e17 100644
--- a/common/dynload.h
+++ b/common/dynload.h
@@ -45,14 +45,9 @@ static inline void *
dlopen (const char *name, int flag)
{
void *hd;
-#ifdef HAVE_W32CE_SYSTEM
- wchar_t *wname = utf8_to_wchar (name);
- hd = wname? LoadLibrary (wname) : NULL;
- xfree (wname);
-#else
- hd = LoadLibrary (name);
-#endif
(void)flag;
+
+ hd = LoadLibraryEx (name, NULL, 0);
return hd;
}
@@ -61,13 +56,7 @@ dlsym (void *hd, const char *sym)
{
if (hd && sym)
{
-#ifdef HAVE_W32CE_SYSTEM
- wchar_t *wsym = utf8_to_wchar (sym);
- void *fnc = wsym? GetProcAddress (hd, wsym) : NULL;
- xfree (wsym);
-#else
void *fnc = GetProcAddress (hd, sym);
-#endif
if (!fnc)
return NULL;
return fnc;