]> git.sesse.net Git - vlc/commitdiff
Win64 compatible modifications around set/getWindowLong
authorJean-Baptiste Kempf <jb@altair.videolan.org>
Wed, 30 Apr 2008 17:01:20 +0000 (19:01 +0200)
committerJean-Baptiste Kempf <jb@altair.videolan.org>
Wed, 30 Apr 2008 17:01:20 +0000 (19:01 +0200)
src/misc/win32_specific.c

index 94784b8f2561e17197019dbc4515e260cf01a88b..1f0f4c7bc5bc14cb7432b061610eeeb1c4acf824 100644 (file)
@@ -287,8 +287,8 @@ static void IPCHelperThread( vlc_object_t *p_this )
                   GetModuleHandle(NULL),  /* handle of this program instance */
                   NULL );                               /* sent to WM_CREATE */
 
-    SetWindowLong( ipcwindow, GWL_WNDPROC, (LONG)WMCOPYWNDPROC );
-    SetWindowLongPtr( ipcwindow, GWL_USERDATA, (LONG_PTR)p_this );
+    SetWindowLongPtr( ipcwindow, GWLP_WNDPROC, (LRESULT)WMCOPYWNDPROC );
+    SetWindowLongPtr( ipcwindow, GWLP_USERDATA, (LONG_PTR)p_this );
 
     /* Signal the creation of the thread and events queue */
     vlc_thread_ready( p_this );
@@ -309,7 +309,7 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
         vlc_object_t *p_this;
         playlist_t *p_playlist;
 
-        p_this = (vlc_object_t *)GetWindowLongPtr( hwnd, GWL_USERDATA );
+        p_this = (vlc_object_t *)GetWindowLongPtr( hwnd, GWLP_USERDATA );
 
         if( !p_this ) return 0;