Skip to content

Commit

Permalink
Merge pull request dotnet#443 from bbowyersmyth/FileSystem_IntPtr
Browse files Browse the repository at this point in the history
Change SafeFileHandle, SafeFindHandle (Win) to use IntPtr.Zero instead of new IntPtr(0)
  • Loading branch information
stephentoub committed Jan 18, 2015
2 parents 8404167 + b115cb8 commit d3f8072
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public override bool IsInvalid
[System.Security.SecurityCritical]
get
{
return handle == new IntPtr(0) || handle == new IntPtr(-1);
return handle == IntPtr.Zero || handle == new IntPtr(-1);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public override bool IsInvalid
[System.Security.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 d3f8072

Please sign in to comment.