From e31acc5a2930528470121d43a6cba4d0f95caf4c Mon Sep 17 00:00:00 2001
From: Silent <zdanio95@gmail.com>
Date: Thu, 1 Feb 2018 23:31:01 +0100
Subject: [PATCH] Updated ModuleList.hpp

---
 SilentPatch/ModuleList.hpp | 4 ++++
 1 file changed, 4 insertions(+)

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
 					{