From a0ac8b202450389d4a79ec2561f021748f976607 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Wed, 18 May 2016 23:42:10 -0400 Subject: [PATCH] [System.Windows.Forms] Fix incorrect compare of IntPtr to null --- .../System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.25.1