From: Jean-Baptiste Kempf Date: Wed, 30 Apr 2008 17:01:20 +0000 (+0200) Subject: Win64 compatible modifications around set/getWindowLong X-Git-Tag: 0.9.0-test0~1287 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b8a4cd332953c030daa87e7481da92c98ce19bb7;p=vlc Win64 compatible modifications around set/getWindowLong --- diff --git a/src/misc/win32_specific.c b/src/misc/win32_specific.c index 94784b8f25..1f0f4c7bc5 100644 --- a/src/misc/win32_specific.c +++ b/src/misc/win32_specific.c @@ -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;