Commit f10635ab authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: In SymEnumerateLoadedModules, don't limit the number of modules.

parent 4cc7a3ba
......@@ -1249,6 +1249,12 @@ BOOL WINAPI EnumerateLoadedModulesW64(HANDLE hProcess,
HeapFree(GetProcessHeap(), 0, hMods);
return FALSE;
}
if (sz > 256 * sizeof(hMods[0]))
{
hMods = HeapReAlloc(GetProcessHeap(), 0, hMods, sz);
if (!hMods || !EnumProcessModules(hProcess, hMods, sz, &sz))
return FALSE;
}
sz /= sizeof(HMODULE);
for (i = 0; i < sz; i++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment