Skip to content

Commit 527a8df

Browse files
committed
Changed valid range.
1 parent 2f968ff commit 527a8df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReClass.NET/Util/Extension.IntPtr.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ public static bool IsNull(this IntPtr ptr)
1818
public static bool MayBeValid(this IntPtr ptr)
1919
{
2020
#if RECLASSNET64
21-
return ptr.InRange((IntPtr)0x10000, (IntPtr)unchecked((long)0x00FF000000000000));
21+
return ptr.InRange((IntPtr)0x10000, (IntPtr)long.MaxValue);
2222
#else
23-
return ptr.InRange((IntPtr)0x10000, (IntPtr)unchecked((int)0xFFFFF000));
23+
return ptr.InRange((IntPtr)0x10000, (IntPtr)int.MaxValue);
2424
#endif
2525
}
2626

0 commit comments

Comments
 (0)