From: Miguel de Icaza Date: Thu, 19 May 2016 03:42:10 +0000 (-0400) Subject: [System.Windows.Forms] Fix incorrect compare of IntPtr to null X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=a0ac8b202450389d4a79ec2561f021748f976607;p=mono.git [System.Windows.Forms] Fix incorrect compare of IntPtr to null --- diff --git a/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs b/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs index 913fb8a57fb..a8f92d12389 100644 --- a/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs +++ b/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs @@ -2842,7 +2842,7 @@ namespace System.Windows.Forms { try { var clipboardAtom = gdk_atom_intern ("CLIPBOARD", true); var clipboard = gtk_clipboard_get (clipboardAtom); - if (clipboard != null) { + if (clipboard != IntPtr.Zero) { // for now we only store text var text = Clipboard.GetRtfText (); if (string.IsNullOrEmpty (text))