mirror of
https://github.com/vxcontrol/MemoryModule.git
synced 2026-07-21 06:05:55 -04:00
Check against NULL, not INVALID_HANDLE_VALUE.
This commit is contained in:
+1
-1
@@ -501,7 +501,7 @@ void MemoryFreeLibrary(HMEMORYMODULE mod)
|
||||
if (module->modules != NULL) {
|
||||
// free previously opened libraries
|
||||
for (i=0; i<module->numModules; i++) {
|
||||
if (module->modules[i] != INVALID_HANDLE_VALUE) {
|
||||
if (module->modules[i] != NULL) {
|
||||
module->freeLibrary(module->modules[i], module->userdata);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user