Fix invalid IntPtr == null comparisons, set strict mode for Roslyn (#19191)
authorJacek Blaszczynski <biosciencenow@outlook.com>
Mon, 30 Jul 2018 00:56:32 +0000 (02:56 +0200)
committerJan Kotas <jkotas@microsoft.com>
Mon, 30 Jul 2018 00:56:32 +0000 (17:56 -0700)
commit93cf012db8396f5ea16f70b781a5de0d012fc65d
treed9aa866239a1adccdae9dbdfcdacae8ee1cabbe0
parent5d31194880e800a9df8eef76e7a0a53646aa72d3
Fix invalid IntPtr == null comparisons, set strict mode for Roslyn (#19191)

Issue reported in https://github.com/dotnet/corefx/issues/31456
Solution is to compare always against IntPtr.Zero and use Roslyn
stric mode for reporting warnings for IntPtr == null comparisons
Directory.Build.props
src/System.Private.CoreLib/src/System/StubHelpers.cs