mirror of
https://github.com/vxcontrol/MemoryModule.git
synced 2026-07-21 06:05:55 -04:00
"LoadLibrary" returns NULL instead of INVALID_HANDLE_VALUE on errors (Issue #2)
This commit is contained in:
+1
-1
@@ -247,7 +247,7 @@ BuildImportTable(PMEMORYMODULE module)
|
||||
POINTER_TYPE *thunkRef;
|
||||
FARPROC *funcRef;
|
||||
HMODULE handle = LoadLibrary((LPCSTR) (codeBase + importDesc->Name));
|
||||
if (handle == INVALID_HANDLE_VALUE) {
|
||||
if (handle == NULL) {
|
||||
#if DEBUG_OUTPUT
|
||||
OutputLastError("Can't load library");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user