From de4dcf9e8649ccd56d5b8617baa4650e8515005f Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sat, 27 Nov 2010 01:06:12 +0100 Subject: Fixing win32 compilation --- src/lua-interface-main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lua-interface-main.c') 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); -- cgit v1.2.3