Initialize hwnd to NULL. This fixes OpenClipboard() failure and, according

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)


svn path=/trunk/; revision=20388
This commit is contained in:
Cody Russell 2008-06-15 00:00:49 +00:00 committed by Cody Russell
parent d4ce1fa262
commit 472ea19b4b
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
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)
2008-06-13 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version

View File

@ -1028,7 +1028,7 @@ gdk_win32_selection_add_targets (GdkWindow *owner,
gint n_targets,
GdkAtom *targets)
{
HWND hwnd;
HWND hwnd = NULL;
guint formatid;
gint i;
GSList *convertable_formats, *format;