[vlc-commits] Win32 global hotkeys: vlc_GetActionId() needs "key-" prefix
Hannes Domani
git at videolan.org
Tue Dec 27 21:03:53 CET 2011
vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Tue Dec 27 20:02:11 2011 +0100| [1f58ae835b1d307f2c5909e2dc5383a5ce1b62f4] | committer: Rémi Denis-Courmont
Win32 global hotkeys: vlc_GetActionId() needs "key-" prefix
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f58ae835b1d307f2c5909e2dc5383a5ce1b62f4
---
modules/control/globalhotkeys/win32.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/control/globalhotkeys/win32.c b/modules/control/globalhotkeys/win32.c
index 055b32a..62ab7a5 100644
--- a/modules/control/globalhotkeys/win32.c
+++ b/modules/control/globalhotkeys/win32.c
@@ -294,13 +294,15 @@ LRESULT CALLBACK WMHOTKEYPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
{
case WM_HOTKEY:
{
- char psz_atomName[40];
+ char psz_atomName[44];
LONG_PTR ret = GetWindowLongPtr( hwnd, GWLP_USERDATA );
intf_thread_t *p_intf = (intf_thread_t*)ret;
+ strcpy( psz_atomName, "key-" );
if( !GlobalGetAtomNameA(
- wParam, psz_atomName, sizeof( psz_atomName ) ) )
+ wParam, psz_atomName + 4,
+ sizeof( psz_atomName ) - 4 ) )
return 0;
/* search for key associated with VLC */
More information about the vlc-commits
mailing list