Commit 1f58ae83 authored by Hannes Domani's avatar Hannes Domani Committed by Rémi Denis-Courmont

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

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 2496d06d
...@@ -294,13 +294,15 @@ LRESULT CALLBACK WMHOTKEYPROC( HWND hwnd, UINT uMsg, WPARAM wParam, ...@@ -294,13 +294,15 @@ LRESULT CALLBACK WMHOTKEYPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
{ {
case WM_HOTKEY: case WM_HOTKEY:
{ {
char psz_atomName[40]; char psz_atomName[44];
LONG_PTR ret = GetWindowLongPtr( hwnd, GWLP_USERDATA ); LONG_PTR ret = GetWindowLongPtr( hwnd, GWLP_USERDATA );
intf_thread_t *p_intf = (intf_thread_t*)ret; intf_thread_t *p_intf = (intf_thread_t*)ret;
strcpy( psz_atomName, "key-" );
if( !GlobalGetAtomNameA( if( !GlobalGetAtomNameA(
wParam, psz_atomName, sizeof( psz_atomName ) ) ) wParam, psz_atomName + 4,
sizeof( psz_atomName ) - 4 ) )
return 0; return 0;
/* search for key associated with VLC */ /* 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