Check against NULL, not INVALID_HANDLE_VALUE.

This commit is contained in:
Joachim Bauch
2013-03-09 00:39:08 +01:00
parent 536a597836
commit f210f67771
+1 -1
View File
@@ -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);
}
}