[vlc-devel] commit: MSW: kill "cast from function... to non matching type" warning ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Sun Aug 23 13:13:07 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Aug 23 12:54:42 2009 +0200| [837374f8fb34df5da4692d26d5bbfb575047d370] | committer: Jean-Baptiste Kempf
MSW: kill "cast from function... to non matching type" warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=837374f8fb34df5da4692d26d5bbfb575047d370
---
modules/video_output/msw/events.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c
index 252847b..4967cdf 100644
--- a/modules/video_output/msw/events.c
+++ b/modules/video_output/msw/events.c
@@ -829,7 +829,8 @@ static long FAR PASCAL DirectXEventProc( HWND hwnd, UINT message,
}
else
{
- p_vout = (vout_thread_t *)GetWindowLongPtr( hwnd, GWLP_USERDATA );
+ LONG_PTR p_user_data = GetWindowLongPtr( hwnd, GWLP_USERDATA );
+ p_vout = (vout_thread_t *)p_user_data;
if( !p_vout )
{
/* Hmmm mozilla does manage somehow to save the pointer to our
More information about the vlc-devel
mailing list