]> git.sesse.net Git - vlc/commitdiff
MSW: kill "cast from function... to non matching type" warning
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 23 Aug 2009 10:54:42 +0000 (12:54 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 23 Aug 2009 10:54:42 +0000 (12:54 +0200)
modules/video_output/msw/events.c

index 252847bcf6bd35d8a1297387ba2c49ed0df97140..4967cdf4d0a7433ef68c43a9d7ad70701310774c 100644 (file)
@@ -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