Fix dbgshim's > 1000 module bug (issue #19538) (#19553)
Fix dbgshim's > 1000 module bug (issue #19538) (#19553)

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

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

mmitche/coreclr,krk/coreclr,wtgodbe/coreclr,cshung/coreclr,cshung/coreclr,wtgodbe/coreclr,poizan42/coreclr,cshung/coreclr,poizan42/coreclr,poizan42/coreclr,wtgodbe/coreclr,cshung/coreclr,cshung/coreclr,mmitche/coreclr,mmitche/coreclr,krk/coreclr,poizan42/coreclr,mmitche/coreclr,wtgodbe/coreclr,cshung/coreclr,krk/coreclr,poizan42/coreclr,wtgodbe/coreclr,mmitche/coreclr,krk/coreclr,poizan42/coreclr,krk/coreclr,wtgodbe/coreclr,krk/coreclr,mmitche/coreclr