mirror of
https://github.com/fancycode/MemoryModule
synced 2026-06-06 15:44:28 +00:00
Reduced scope of variable.
This commit is contained in:
+1
-1
@@ -633,7 +633,6 @@ FARPROC MemoryGetProcAddress(HMEMORYMODULE module, LPCSTR name)
|
|||||||
|
|
||||||
void MemoryFreeLibrary(HMEMORYMODULE mod)
|
void MemoryFreeLibrary(HMEMORYMODULE mod)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
PMEMORYMODULE module = (PMEMORYMODULE)mod;
|
PMEMORYMODULE module = (PMEMORYMODULE)mod;
|
||||||
|
|
||||||
if (module == NULL) {
|
if (module == NULL) {
|
||||||
@@ -647,6 +646,7 @@ void MemoryFreeLibrary(HMEMORYMODULE mod)
|
|||||||
|
|
||||||
if (module->modules != NULL) {
|
if (module->modules != NULL) {
|
||||||
// free previously opened libraries
|
// free previously opened libraries
|
||||||
|
int i;
|
||||||
for (i=0; i<module->numModules; i++) {
|
for (i=0; i<module->numModules; i++) {
|
||||||
if (module->modules[i] != NULL) {
|
if (module->modules[i] != NULL) {
|
||||||
module->freeLibrary(module->modules[i], module->userdata);
|
module->freeLibrary(module->modules[i], module->userdata);
|
||||||
|
|||||||
Reference in New Issue
Block a user