diff --git a/SilentPatch/ModuleList.hpp b/SilentPatch/ModuleList.hpp index 2190f7e..5fd7d5f 100644 --- a/SilentPatch/ModuleList.hpp +++ b/SilentPatch/ModuleList.hpp @@ -51,6 +51,10 @@ public: EnumerateInternal( modules, cbNeeded / sizeof(HMODULE) ); } } + else + { + EnumerateInternal( modules, INITIAL_SIZE / sizeof(HMODULE) ); + } } else {