[vlc-devel] commit: Port GlobalHotkeys to the correct SetWindowLongPtr API ( Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Aug 19 16:05:09 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug 19 16:03:10 2009 +0200| [14039ca107bc4b1ad04816a24d3f9e57ecc7dac5] | committer: Jean-Baptiste Kempf 

Port GlobalHotkeys to the correct SetWindowLongPtr API

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=14039ca107bc4b1ad04816a24d3f9e57ecc7dac5
---

 modules/control/globalhotkeys/win32.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/control/globalhotkeys/win32.c b/modules/control/globalhotkeys/win32.c
index 6f89672..161a051 100644
--- a/modules/control/globalhotkeys/win32.c
+++ b/modules/control/globalhotkeys/win32.c
@@ -162,9 +162,9 @@ static void *Thread( void *p_data )
     vlc_cond_signal( &p_sys->wait );
     vlc_mutex_unlock( &p_sys->lock );
 
-    SetWindowLongPtr( p_sys->hotkeyWindow, GWL_WNDPROC,
+    SetWindowLongPtr( p_sys->hotkeyWindow, GWLP_WNDPROC,
             (LONG_PTR)WMHOTKEYPROC );
-    SetWindowLongPtr( p_sys->hotkeyWindow, GWL_USERDATA,
+    SetWindowLongPtr( p_sys->hotkeyWindow, GWLP_USERDATA,
             (LONG_PTR)p_intf );
 
     /* Registering of Hotkeys */
@@ -294,7 +294,7 @@ LRESULT CALLBACK WMHOTKEYPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
                 char psz_atomName[40];
 
                 intf_thread_t *p_intf =
-                    (intf_thread_t*)GetWindowLongPtr( hwnd, GWL_USERDATA );
+                    (intf_thread_t*)GetWindowLongPtr( hwnd, GWLP_USERDATA );
                 struct hotkey *p_hotkeys = p_intf->p_libvlc->p_hotkeys;
 
                 i = GlobalGetAtomNameA(




More information about the vlc-devel mailing list