Fix GetNonGCHeapBounds (#85702)
authorEgor Bogatov <egorbo@gmail.com>
Thu, 4 May 2023 00:38:33 +0000 (02:38 +0200)
committerGitHub <noreply@github.com>
Thu, 4 May 2023 00:38:33 +0000 (02:38 +0200)
src/coreclr/vm/proftoeeinterfaceimpl.cpp

index f2b67a9..455cfc3 100644 (file)
@@ -7675,7 +7675,7 @@ HRESULT ProfToEEInterfaceImpl::GetNonGCHeapBounds(ULONG cObjectRanges,
 
         if (pcObjectRanges != nullptr)
         {
-            *pcObjectRanges = segmentsToInspect;
+            *pcObjectRanges = (ULONG)segmentsCount;
         }
     }
     else