Fix a couple of Windows createdump issues (#35820)
authorMike McLaughlin <mikem@microsoft.com>
Tue, 5 May 2020 04:00:10 +0000 (21:00 -0700)
committerGitHub <noreply@github.com>
Tue, 5 May 2020 04:00:10 +0000 (04:00 +0000)
commit30c0d0ac33ad0e7abd54f209c082636e8e59b78c
tree25b1b73b1e1a4df1664c5314e52858cc6d3d50d2
parente3c744461d05b891d3ed3b4bcb4821663f20aa90
Fix a couple of Windows createdump issues (#35820)

* Fix ERROR_PARTIAL_COPY retry. MiniDumpWriteDump sets the last error to the HRESULT instead of win32 error code

* Fix createdump crash triggering on x86 runtime. The initialization code
was in the wrong place and not being called on the x86 coreclr.dll. Moved
it to early in EEStartupHelper.
src/coreclr/src/debug/createdump/createdumpwindows.cpp
src/coreclr/src/vm/ceemain.cpp
src/coreclr/src/vm/exceptionhandling.cpp