Avoid endianness swap decisions in the inner loop
[mono.git] / eglib / src / gmodule-win32.c
index a51d50064e712d78381a8fd518794c10da23cbf5..68d1619825c3fc1e0159272f3733aa414114d717 100644 (file)
@@ -53,7 +53,7 @@ g_module_open (const gchar *file, GModuleFlags flags)
                gunichar2 *file16;
                file16 = u8to16(file); 
                module->main_module = FALSE;
-               module->handle = LoadLibrary (file16);
+               module->handle = LoadLibraryW (file16);
                g_free(file16);
                if (!module->handle) {
                        g_free (module);