Reduced scope of variable.

This commit is contained in:
Joachim Bauch
2015-03-01 00:04:38 +01:00
parent d321abf8fa
commit 463447c1ed
+1 -1
View File
@@ -633,7 +633,6 @@ FARPROC MemoryGetProcAddress(HMEMORYMODULE module, LPCSTR name)
void MemoryFreeLibrary(HMEMORYMODULE mod)
{
int i;
PMEMORYMODULE module = (PMEMORYMODULE)mod;
if (module == NULL) {
@@ -647,6 +646,7 @@ void MemoryFreeLibrary(HMEMORYMODULE mod)
if (module->modules != NULL) {
// free previously opened libraries
int i;
for (i=0; i<module->numModules; i++) {
if (module->modules[i] != NULL) {
module->freeLibrary(module->modules[i], module->userdata);