Skip to content

Commit d9a3b23

Browse files
committed
Use \LoadLibraryA" to fix potential error when compiling with UNICODE being defined (github issue fancycode#6)
1 parent c01e010 commit d9a3b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MemoryModule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ BuildImportTable(PMEMORYMODULE module)
247247
for (; !IsBadReadPtr(importDesc, sizeof(IMAGE_IMPORT_DESCRIPTOR)) && importDesc->Name; importDesc++) {
248248
POINTER_TYPE *thunkRef;
249249
FARPROC *funcRef;
250-
HMODULE handle = LoadLibrary((LPCSTR) (codeBase + importDesc->Name));
250+
HMODULE handle = LoadLibraryA((LPCSTR) (codeBase + importDesc->Name));
251251
if (handle == NULL) {
252252
#if DEBUG_OUTPUT
253253
OutputLastError("Can't load library");

0 commit comments

Comments
 (0)