From f997ebc065f58792bcaf287ff619da344b9b3711 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Tue, 8 Jun 2010 09:32:41 +0200 Subject: Fixing windows part of the new dll code. --- src/lua-plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lua-plugin.cc') diff --git a/src/lua-plugin.cc b/src/lua-plugin.cc index 0069123..54dcefc 100644 --- a/src/lua-plugin.cc +++ b/src/lua-plugin.cc @@ -47,7 +47,7 @@ void LuaLoadPlugin(Handle * h, Lua * L) throw (GeneralException) { HMEMORYMODULE module; - if (!(module = ModuleLoadMemory(buffer))) + if (!(module = MemoryLoadLibrary(buffer))) throw("Can't load library " + h->GetName() + " from memory."); init_ptr_t init_ptr = (init_ptr_t) MemoryGetProcAddress(module, "init_plugin"); -- cgit v1.2.3