Fix dbgshim's > 1000 module bug (issue dotnet/coreclr#19538) (dotnet/coreclr#19553)
authorMike McLaughlin <mikem@microsoft.com>
Mon, 20 Aug 2018 20:33:05 +0000 (13:33 -0700)
committerGitHub <noreply@github.com>
Mon, 20 Aug 2018 20:33:05 +0000 (13:33 -0700)
commit71e58c13b8347ebebcc6f4638e2c3285d6a449ff
treecd1a6485671e6b1f26265c72bf37ead80516ff9f
parentda6edfc5eead597643efaf2d3cc31b98733fae39
Fix dbgshim's > 1000 module bug (issue dotnet/coreclr#19538) (dotnet/coreclr#19553)

Fix dbgshim's > 1000 module bug (issue dotnet/coreclr#19538)

Cap cbNeeded on second EnumProcessModules call. Change the allocations
to HMODULE to make sure they are aligned properly.

Commit migrated from https://github.com/dotnet/coreclr/commit/ba9598ee52cb8da554255ccd09945d2baae4aecb
src/coreclr/src/dlls/dbgshim/dbgshim.cpp