Skip to content

Commit

Permalink
Merge pull request dotnet#437 from bbowyersmyth/MemoryMapped_IntPtr
Browse files Browse the repository at this point in the history
Change SafeMemoryMappedFileHandle to use IntPtr.Zero instead of new IntPtr(0)
  • Loading branch information
stephentoub committed Jan 17, 2015
2 parents 81c8772 + 5fd521e commit 34d28bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public override bool IsInvalid
[SecurityCritical]
get
{
return handle == new IntPtr(0) || handle == new IntPtr(-1);
return handle == IntPtr.Zero || handle == new IntPtr(-1);
}
}
}
Expand Down

0 comments on commit 34d28bd

Please sign in to comment.