From d1893e0e7e3832812e5be8d52f0fae0f590aad81 Mon Sep 17 00:00:00 2001 From: LRN Date: Thu, 4 Jun 2009 00:27:44 +0200 Subject: [PATCH] [347/906] fix miscast of a pointer in SetWindowLongPtr GCC 4.4.0 complains error: cast from pointer to integer of different size Fixes #584678. --- gst-libs/gst/gl/gstglwindow_win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglwindow_win32.c b/gst-libs/gst/gl/gstglwindow_win32.c index e03610e32e..879bc80ce7 100644 --- a/gst-libs/gst/gl/gstglwindow_win32.c +++ b/gst-libs/gst/gl/gstglwindow_win32.c @@ -204,7 +204,7 @@ gst_gl_window_set_external_window_id (GstGLWindow * window, gulong id) SetProp (priv->internal_win_id, "gl_window_parent_id", (HWND) id); SetProp ((HWND) id, "gl_window_id", priv->internal_win_id); SetProp ((HWND) id, "gl_window_parent_proc", (WNDPROC) window_parent_proc); - SetWindowLongPtr ((HWND) id, GWL_WNDPROC, (DWORD) (guint64) sub_class_proc); + SetWindowLongPtr ((HWND) id, GWL_WNDPROC, (LONG_PTR) sub_class_proc); SetWindowLongPtr (priv->internal_win_id, GWL_STYLE, WS_CHILD | WS_MAXIMIZE); SetParent (priv->internal_win_id, (HWND) id);