From f210f677712996fd32cb2e50c9dd606d2cfa1e26 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Sat, 9 Mar 2013 00:39:08 +0100 Subject: [PATCH] Check against NULL, not INVALID_HANDLE_VALUE. --- MemoryModule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MemoryModule.c b/MemoryModule.c index 8b81da4..c32b128 100644 --- a/MemoryModule.c +++ b/MemoryModule.c @@ -501,7 +501,7 @@ void MemoryFreeLibrary(HMEMORYMODULE mod) if (module->modules != NULL) { // free previously opened libraries for (i=0; inumModules; i++) { - if (module->modules[i] != INVALID_HANDLE_VALUE) { + if (module->modules[i] != NULL) { module->freeLibrary(module->modules[i], module->userdata); } }