Skip to content

Commit

Permalink
Fix DAC GetFlags() function for SOS (#89679)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikem8361 authored Aug 2, 2023
1 parent 0a2a417 commit a743d60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/coreclr/debug/daccess/task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2500,7 +2500,7 @@ ClrDataModule::GetFlags(
PTR_BaseDomain pBaseDomain = pAssembly->GetDomain();
if (pBaseDomain->IsAppDomain())
{
AppDomain* pAppDomain = pBaseDomain->AsAppDomain();
PTR_AppDomain pAppDomain = pBaseDomain->AsAppDomain();
if (pAssembly == pAppDomain->GetRootAssembly())
{
(*flags) |= CLRDATA_MODULE_IS_MAIN_MODULE;
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/vm/appdomain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2156,7 +2156,7 @@ class AppDomain : public BaseDomain
void AddMemoryPressure();
void RemoveMemoryPressure();

Assembly *GetRootAssembly()
PTR_Assembly GetRootAssembly()
{
LIMITED_METHOD_CONTRACT;
return m_pRootAssembly;
Expand Down Expand Up @@ -2394,7 +2394,7 @@ class SystemDomain : public BaseDomain
//****************************************************************************************
//
// Global Static to get the one and only system domain
static SystemDomain * System()
static PTR_SystemDomain System()
{
LIMITED_METHOD_DAC_CONTRACT;

Expand Down

0 comments on commit a743d60

Please sign in to comment.