Skip to content

Commit

Permalink
Fix ReplaceModuleMapping for 32bit binary on 64bit kernel (#66640)
Browse files Browse the repository at this point in the history
  • Loading branch information
HJLeee authored Mar 21, 2022
1 parent 97306bf commit eb51b02
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 eb51b02

Please sign in to comment.