Skip to content

Commit 463447c

Browse files
committed
Reduced scope of variable.
1 parent d321abf commit 463447c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MemoryModule.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,6 @@ FARPROC MemoryGetProcAddress(HMEMORYMODULE module, LPCSTR name)
633633

634634
void MemoryFreeLibrary(HMEMORYMODULE mod)
635635
{
636-
int i;
637636
PMEMORYMODULE module = (PMEMORYMODULE)mod;
638637

639638
if (module == NULL) {
@@ -647,6 +646,7 @@ void MemoryFreeLibrary(HMEMORYMODULE mod)
647646

648647
if (module->modules != NULL) {
649648
// free previously opened libraries
649+
int i;
650650
for (i=0; i<module->numModules; i++) {
651651
if (module->modules[i] != NULL) {
652652
module->freeLibrary(module->modules[i], module->userdata);

0 commit comments

Comments
 (0)