Skip to content

Commit f210f67

Browse files
committed
Check against NULL, not INVALID_HANDLE_VALUE.
1 parent 536a597 commit f210f67

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
@@ -501,7 +501,7 @@ void MemoryFreeLibrary(HMEMORYMODULE mod)
501501
if (module->modules != NULL) {
502502
// free previously opened libraries
503503
for (i=0; i<module->numModules; i++) {
504-
if (module->modules[i] != INVALID_HANDLE_VALUE) {
504+
if (module->modules[i] != NULL) {
505505
module->freeLibrary(module->modules[i], module->userdata);
506506
}
507507
}

0 commit comments

Comments
 (0)