"LoadLibrary" returns NULL instead of INVALID_HANDLE_VALUE on errors (Issue #2)

This commit is contained in:
Joachim Bauch
2012-04-09 22:08:25 +02:00
parent 7feb92c9ef
commit 73833b3eb5
+1 -1
View File
@@ -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