Skip to content

Commit 165d826

Browse files
committed
nit
1 parent ce7e098 commit 165d826

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ internal static class CodePointerUtils
1313

1414
internal static TargetCodePointer CodePointerFromAddress(TargetPointer address, Target target)
1515
{
16-
if (address == TargetCodePointer.Null)
16+
if (address == TargetPointer.Null)
1717
{
1818
return TargetCodePointer.Null;
1919
}

src/native/managed/cdac/mscordaccore_universal/Legacy/ConversionExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static TargetPointer ToTargetPointer(this ClrDataAddress address, Target
4242
long signedAddr = (long)address.Value;
4343
if (!overrideCheck && (signedAddr > int.MaxValue || signedAddr < int.MinValue))
4444
{
45-
throw new ArgumentException(nameof(address), "ClrDataAddress out of range for the target platform.");
45+
throw new ArgumentException("ClrDataAddress out of range for the target platform.", nameof(address));
4646
}
4747
return new TargetPointer((uint)address);
4848
}
@@ -62,7 +62,7 @@ public static TargetCodePointer ToTargetCodePointer(this ClrDataAddress address,
6262
long signedAddr = (long)address.Value;
6363
if (signedAddr > int.MaxValue || signedAddr < int.MinValue)
6464
{
65-
throw new ArgumentException(nameof(address), "ClrDataAddress out of range for the target platform.");
65+
throw new ArgumentException("ClrDataAddress out of range for the target platform.", nameof(address));
6666
}
6767
return new TargetCodePointer((uint)address);
6868
}

0 commit comments

Comments
 (0)