diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lua-interface-main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lua-interface-main.c b/src/lua-interface-main.c index c3f63a6..11e683d 100644 --- a/src/lua-interface-main.c +++ b/src/lua-interface-main.c @@ -42,12 +42,11 @@ static dll_main_t LoadDllMain(const char * searchpath) { const char * fname = "lua-interface." SHARED_EXT; if (!(handle = LoadLibraryExWrap(fname, NULL, LOAD_WITH_ALTERED_SEARCH_PATH)) && - !(handle = LoadLibraryExWrap(fname, NULL, NULL))) { - LuaLoadPlugin(&Input(fname), L); + !(handle = LoadLibraryExWrap(fname, NULL, 0))) { return NULL; } - dll_main_t dll_main = (dll_main) GetProcAddress(handle, "dll_main"); + dll_main_t dll_main = (dll_main_t) GetProcAddress(handle, "dll_main"); if (!dll_main) FreeLibrary(handle); |