Skip to content

Commit 0afacae

Browse files
committed
Extended valid range.
1 parent fd23a62 commit 0afacae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Util/Extensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ public static bool IsNull(this IntPtr ptr)
6969
public static bool MayBeValid(this IntPtr ptr)
7070
{
7171
#if WIN64
72-
return ptr.InRange((IntPtr)0x10000, (IntPtr)unchecked((long)0x000F000000000000));
72+
return ptr.InRange((IntPtr)0x10000, (IntPtr)unchecked((long)0x00FF000000000000));
7373
#else
74-
return ptr.InRange((IntPtr)0x10000, (IntPtr)unchecked((int)0xFFF00000));
74+
return ptr.InRange((IntPtr)0x10000, (IntPtr)unchecked((int)0xFFFFF000));
7575
#endif
7676
}
7777

0 commit comments

Comments
 (0)