diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-11-27 01:06:12 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-11-27 01:06:40 +0100 |
commit | de4dcf9e8649ccd56d5b8617baa4650e8515005f (patch) | |
tree | e3df3f3ec99c1a7545f52181c39dabdb469793a1 /src/lua-interface-main.c | |
parent | deed24e136d6bf2d40074d62238c4f0c78c20137 (diff) |
Fixing win32 compilation
Diffstat (limited to 'src/lua-interface-main.c')
-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); |