Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Fix flipped error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
janvorli committed Apr 3, 2019
1 parent cb8b829 commit dd80afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gc/gc.cpp
Expand Up @@ -34088,15 +34088,15 @@ HRESULT GCHeap::Initialize()
AffinitySet config_affinity_set;
if (!ParseGCHeapAffinitizeRanges(&config_affinity_set))
{
return CLR_E_GC_BAD_AFFINITY_CONFIG;
return CLR_E_GC_BAD_AFFINITY_CONFIG_FORMAT;
}

uintptr_t config_affinity_mask = static_cast<uintptr_t>(GCConfig::GetGCHeapAffinitizeMask());
const AffinitySet* process_affinity_set = GCToOSInterface::SetGCThreadsAffinitySet(config_affinity_mask, &config_affinity_set);

if (process_affinity_set->IsEmpty())
{
return CLR_E_GC_BAD_AFFINITY_CONFIG_FORMAT;
return CLR_E_GC_BAD_AFFINITY_CONFIG;
}

nhp_from_config = static_cast<uint32_t>(GCConfig::GetHeapCount());
Expand Down

0 comments on commit dd80afe

Please sign in to comment.