Use \LoadLibraryA" to fix potential error when compiling with UNICODE being defined (github issue #6)

This commit is contained in:
Joachim Bauch
2013-03-05 00:46:11 +01:00
parent c01e010793
commit d9a3b23830
+1 -1
View File
@@ -247,7 +247,7 @@ BuildImportTable(PMEMORYMODULE module)
for (; !IsBadReadPtr(importDesc, sizeof(IMAGE_IMPORT_DESCRIPTOR)) && importDesc->Name; importDesc++) {
POINTER_TYPE *thunkRef;
FARPROC *funcRef;
HMODULE handle = LoadLibrary((LPCSTR) (codeBase + importDesc->Name));
HMODULE handle = LoadLibraryA((LPCSTR) (codeBase + importDesc->Name));
if (handle == NULL) {
#if DEBUG_OUTPUT
OutputLastError("Can't load library");