Skip to content

Commit e27006e

Browse files
authored
Update pointer reading method in ComWrappers_1.cs
1 parent 0f39605 commit e27006e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Contracts/Contracts

src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Contracts/Contracts/ComWrappers_1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private bool IsComWrappersCCW(TargetPointer ccw)
5656
if (!GetComWrappersCCWVTableQIAddress(ccw, out _, out TargetPointer qiAddress))
5757
return false;
5858

59-
if (!_target.TryReadPointer(Constants.Globals.ComWrappersVtablePtrs, out TargetPointer? comWrappersVtablePtrs))
59+
if (!_target.TryReadGlobalPointer(Constants.Globals.ComWrappersVtablePtrs, out TargetPointer? comWrappersVtablePtrs))
6060
return false;
6161
Data.ComWrappersVtablePtrs comWrappersVtableStruct = _target.ProcessedData.GetOrAdd<Data.ComWrappersVtablePtrs>(comWrappersVtablePtrs.Value);
6262
return comWrappersVtableStruct.ComWrappersInterfacePointers.Contains(CodePointerUtils.CodePointerFromAddress(qiAddress, _target));

0 commit comments

Comments
 (0)