gtk+ r20388 - in trunk: . gdk/win32



Author: bratsche
Date: Sun Jun 15 00:00:49 2008
New Revision: 20388
URL: http://svn.gnome.org/viewvc/gtk+?rev=20388&view=rev

Log:
2008-06-14  Cody Russell  <bratsche gnome org>

        * gdk/win32/gdkselection-win32.c (gdk_win32_selection_add_targets):

        Initialize hwnd to NULL.  This fixes OpenClipboard() failure and,
        according to MSDN docs, associates the open clipboard with the
        current task.  (#378158, reported by Andreas KÃhler)



Modified:
   trunk/ChangeLog
   trunk/gdk/win32/gdkselection-win32.c

Modified: trunk/gdk/win32/gdkselection-win32.c
==============================================================================
--- trunk/gdk/win32/gdkselection-win32.c	(original)
+++ trunk/gdk/win32/gdkselection-win32.c	Sun Jun 15 00:00:49 2008
@@ -1028,7 +1028,7 @@
 				 gint	     n_targets,
 				 GdkAtom    *targets)
 {
-  HWND hwnd;
+  HWND hwnd = NULL;
   guint formatid;
   gint i;
   GSList *convertable_formats, *format;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]