Browse Source

fix(MicroComProxyBase): CS8073 The result of the expression is always 'false' since a value of type 'IntPtr' is never equal to 'null'

pull/8955/head
Giuseppe Lippolis 4 years ago
parent
commit
0f6523ec81
  1. 2
      src/Avalonia.MicroCom/MicroComProxyBase.cs

2
src/Avalonia.MicroCom/MicroComProxyBase.cs

@ -65,7 +65,7 @@ namespace Avalonia.MicroCom
protected virtual void Dispose(bool disposing)
{
if(_nativePointer == null)
if(_nativePointer == IntPtr.Zero)
return;
if (_ownsHandle)
{

Loading…
Cancel
Save