Skip to content

Commit

Permalink
Fix ReplaceModuleMapping for 32bit binary on 64bit kernel (dotnet#66640)
Browse files Browse the repository at this point in the history
  • Loading branch information
HJLeee authored and radekdoulik committed Mar 30, 2022
1 parent 4ec1e1b commit 63cdc5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/debug/createdump/crashinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ CrashInfo::UnwindAllThreads()
void
CrashInfo::ReplaceModuleMapping(CLRDATA_ADDRESS baseAddress, ULONG64 size, const std::string& name)
{
uint64_t start = (uint64_t)baseAddress;
uint64_t end = ((baseAddress + size) + (PAGE_SIZE - 1)) & PAGE_MASK;
ULONG_PTR start = (ULONG_PTR)baseAddress;
ULONG_PTR end = ((baseAddress + size) + (PAGE_SIZE - 1)) & PAGE_MASK;
uint32_t flags = GetMemoryRegionFlags(start);

// Make sure that the page containing the PE header for the managed asseblies is in the dump
Expand Down

0 comments on commit 63cdc5a

Please sign in to comment.