mirror of
https://github.com/fancycode/MemoryModule
synced 2026-06-06 15:44:28 +00:00
Use \LoadLibraryA" to fix potential error when compiling with UNICODE being defined (github issue #6)
This commit is contained in:
+1
-1
@@ -247,7 +247,7 @@ BuildImportTable(PMEMORYMODULE module)
|
|||||||
for (; !IsBadReadPtr(importDesc, sizeof(IMAGE_IMPORT_DESCRIPTOR)) && importDesc->Name; importDesc++) {
|
for (; !IsBadReadPtr(importDesc, sizeof(IMAGE_IMPORT_DESCRIPTOR)) && importDesc->Name; importDesc++) {
|
||||||
POINTER_TYPE *thunkRef;
|
POINTER_TYPE *thunkRef;
|
||||||
FARPROC *funcRef;
|
FARPROC *funcRef;
|
||||||
HMODULE handle = LoadLibrary((LPCSTR) (codeBase + importDesc->Name));
|
HMODULE handle = LoadLibraryA((LPCSTR) (codeBase + importDesc->Name));
|
||||||
if (handle == NULL) {
|
if (handle == NULL) {
|
||||||
#if DEBUG_OUTPUT
|
#if DEBUG_OUTPUT
|
||||||
OutputLastError("Can't load library");
|
OutputLastError("Can't load library");
|
||||||
|
|||||||
Reference in New Issue
Block a user