Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
14039ca1
Commit
14039ca1
authored
Aug 19, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port GlobalHotkeys to the correct SetWindowLongPtr API
parent
3e9c8d1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/control/globalhotkeys/win32.c
modules/control/globalhotkeys/win32.c
+3
-3
No files found.
modules/control/globalhotkeys/win32.c
View file @
14039ca1
...
@@ -162,9 +162,9 @@ static void *Thread( void *p_data )
...
@@ -162,9 +162,9 @@ static void *Thread( void *p_data )
vlc_cond_signal
(
&
p_sys
->
wait
);
vlc_cond_signal
(
&
p_sys
->
wait
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
SetWindowLongPtr
(
p_sys
->
hotkeyWindow
,
GWL_WNDPROC
,
SetWindowLongPtr
(
p_sys
->
hotkeyWindow
,
GWL
P
_WNDPROC
,
(
LONG_PTR
)
WMHOTKEYPROC
);
(
LONG_PTR
)
WMHOTKEYPROC
);
SetWindowLongPtr
(
p_sys
->
hotkeyWindow
,
GWL_USERDATA
,
SetWindowLongPtr
(
p_sys
->
hotkeyWindow
,
GWL
P
_USERDATA
,
(
LONG_PTR
)
p_intf
);
(
LONG_PTR
)
p_intf
);
/* Registering of Hotkeys */
/* Registering of Hotkeys */
...
@@ -294,7 +294,7 @@ LRESULT CALLBACK WMHOTKEYPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
...
@@ -294,7 +294,7 @@ LRESULT CALLBACK WMHOTKEYPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
char
psz_atomName
[
40
];
char
psz_atomName
[
40
];
intf_thread_t
*
p_intf
=
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
GetWindowLongPtr
(
hwnd
,
GWL_USERDATA
);
(
intf_thread_t
*
)
GetWindowLongPtr
(
hwnd
,
GWL
P
_USERDATA
);
struct
hotkey
*
p_hotkeys
=
p_intf
->
p_libvlc
->
p_hotkeys
;
struct
hotkey
*
p_hotkeys
=
p_intf
->
p_libvlc
->
p_hotkeys
;
i
=
GlobalGetAtomNameA
(
i
=
GlobalGetAtomNameA
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment