diff options
author | Cody Russell <bratsche@gnome.org> | 2008-06-15 00:00:49 +0000 |
---|---|---|
committer | Cody Russell <bratsche@src.gnome.org> | 2008-06-15 00:00:49 +0000 |
commit | 472ea19b4b8905bfb0daf87bd24cefd1c698673f (patch) | |
tree | 675806827f11e1adb662e5201b5f60d19c37b86a /gdk | |
parent | d4ce1fa262a029da0681b13ce927f43d07930891 (diff) | |
download | gtk+-472ea19b4b8905bfb0daf87bd24cefd1c698673f.tar.gz |
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
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/win32/gdkselection-win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |