Commit 32a538e4 authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

Win32 global hotkeys: vlc_GetActionId() needs "key-" prefix

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit 1f58ae835b1d307f2c5909e2dc5383a5ce1b62f4)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c751034e
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment