diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-06-08 09:32:41 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-06-08 09:32:41 +0200 |
commit | f997ebc065f58792bcaf287ff619da344b9b3711 (patch) | |
tree | 77081cfc9cd5865aa8aa1fcf8d7a012ed33a973d /src | |
parent | 80be0e3fcf7043490f3c13208f9501ed000c23d5 (diff) |
Fixing windows part of the new dll code.
Diffstat (limited to 'src')
-rw-r--r-- | src/MemoryModule.c | 2 | ||||
-rw-r--r-- | src/MemoryModule.h | 2 | ||||
-rw-r--r-- | src/lua-plugin.cc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/MemoryModule.c b/src/MemoryModule.c index 5e6facd..83383c7 100644 --- a/src/MemoryModule.c +++ b/src/MemoryModule.c @@ -27,7 +27,7 @@ // disable warnings about pointer <-> DWORD conversions #pragma warning( disable : 4311 4312 ) -#include <Windows.h> +#include <windows.h> #include <winnt.h> #ifdef DEBUG_OUTPUT #include <stdio.h> diff --git a/src/MemoryModule.h b/src/MemoryModule.h index acece0d..05303f0 100644 --- a/src/MemoryModule.h +++ b/src/MemoryModule.h @@ -27,7 +27,7 @@ #ifndef __MEMORY_MODULE_HEADER #define __MEMORY_MODULE_HEADER -#include <Windows.h> +#include <windows.h> typedef void *HMEMORYMODULE; 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"); |