[vlc-commits] Win32 global hotkeys: vlc_GetActionId() needs "key-" prefix
Hannes Domani
git at videolan.org
Wed Dec 28 01:39:52 CET 2011
vlc/vlc-1.2 | branch: master | Hannes Domani <ssbssa at yahoo.de> | Tue Dec 27 20:02:11 2011 +0100| [32a538e4651979d034ff2554928cfecf1d7fc000] | committer: Jean-Baptiste Kempf
Win32 global hotkeys: vlc_GetActionId() needs "key-" prefix
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 1f58ae835b1d307f2c5909e2dc5383a5ce1b62f4)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=32a538e4651979d034ff2554928cfecf1d7fc000
---
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