From 472ea19b4b8905bfb0daf87bd24cefd1c698673f Mon Sep 17 00:00:00 2001 From: Cody Russell Date: Sun, 15 Jun 2008 00:00:49 +0000 Subject: [PATCH] Initialize hwnd to NULL. This fixes OpenClipboard() failure and, according MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-06-14 Cody Russell * 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 --- ChangeLog | 8 ++++++++ gdk/win32/gdkselection-win32.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a80ed70b01..f69f074517 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-06-14 Cody Russell + + * 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 * configure.in: Bump version diff --git a/gdk/win32/gdkselection-win32.c b/gdk/win32/gdkselection-win32.c index 01e2d7f58f..7e9c8d9710 100644 --- a/gdk/win32/gdkselection-win32.c +++ b/gdk/win32/gdkselection-win32.c @@ -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;