]> git.sesse.net Git - vlc/commitdiff
Fix compilation of Win32 global hotkeys
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 25 Aug 2009 18:36:15 +0000 (20:36 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 25 Aug 2009 18:36:48 +0000 (20:36 +0200)
modules/control/globalhotkeys/win32.c

index 7bb8c749060d9bb31a16bf7be7cdf252473d0ce0..323e802f6b5460e84552f35a0994658104058ce3 100644 (file)
@@ -292,8 +292,8 @@ LRESULT CALLBACK WMHOTKEYPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
             {
                 char psz_atomName[40];
 
-                intf_thread_t *p_intf =
-                    (intf_thread_t*)GetWindowLongPtr( hwnd, GWLP_USERDATA );
+                LONG_PTR ret = GetWindowLongPtr( hwnd, GWLP_USERDATA );
+                intf_thread_t *p_intf = (intf_thread_t*)ret;
                 struct hotkey *p_hotkeys = p_intf->p_libvlc->p_hotkeys;
 
                 if( !GlobalGetAtomNameA(