Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1bee9f4f
Commit
1bee9f4f
authored
Dec 22, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Make HOOK_IsHooked function static.
parent
83b66549
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
+14
-15
hook.c
dlls/user32/hook.c
+13
-12
msg16.c
dlls/user32/msg16.c
+1
-2
user_private.h
dlls/user32/user_private.h
+0
-1
No files found.
dlls/user32/hook.c
View file @
1bee9f4f
...
...
@@ -388,6 +388,19 @@ static LRESULT call_hook( struct hook_info *info, INT code, WPARAM wparam, LPARA
return
ret
;
}
/***********************************************************************
* HOOK_IsHooked
*/
static
BOOL
HOOK_IsHooked
(
INT
id
)
{
struct
user_thread_info
*
thread_info
=
get_user_thread_info
();
if
(
!
thread_info
->
active_hooks
)
return
TRUE
;
return
(
thread_info
->
active_hooks
&
(
1
<<
(
id
-
WH_MINHOOK
)))
!=
0
;
}
/***********************************************************************
* HOOK_CallHooks
*/
...
...
@@ -441,18 +454,6 @@ LRESULT HOOK_CallHooks( INT id, INT code, WPARAM wparam, LPARAM lparam, BOOL uni
/***********************************************************************
* HOOK_IsHooked
*/
BOOL
HOOK_IsHooked
(
INT
id
)
{
struct
user_thread_info
*
thread_info
=
get_user_thread_info
();
if
(
!
thread_info
->
active_hooks
)
return
TRUE
;
return
(
thread_info
->
active_hooks
&
(
1
<<
(
id
-
WH_MINHOOK
)))
!=
0
;
}
/***********************************************************************
* SetWindowsHookA (USER32.@)
*/
HHOOK
WINAPI
SetWindowsHookA
(
INT
id
,
HOOKPROC
proc
)
...
...
dlls/user32/msg16.c
View file @
1bee9f4f
...
...
@@ -1500,8 +1500,7 @@ LRESULT WINAPI SendMessage16( HWND16 hwnd16, UINT16 msg, WPARAM16 wparam, LPARAM
WNDPROC16
winproc
;
/* first the WH_CALLWNDPROC hook */
if
(
HOOK_IsHooked
(
WH_CALLWNDPROC
))
WINPROC_CallProc16To32A
(
cwp_hook_callback
,
hwnd16
,
msg
,
wparam
,
lparam
,
&
result
,
NULL
);
WINPROC_CallProc16To32A
(
cwp_hook_callback
,
hwnd16
,
msg
,
wparam
,
lparam
,
&
result
,
NULL
);
if
(
!
(
winproc
=
(
WNDPROC16
)
GetWindowLong16
(
hwnd16
,
GWLP_WNDPROC
)))
return
0
;
...
...
dlls/user32/user_private.h
View file @
1bee9f4f
...
...
@@ -214,7 +214,6 @@ struct dce;
extern
BOOL
CLIPBOARD_ReleaseOwner
(
void
)
DECLSPEC_HIDDEN
;
extern
BOOL
FOCUS_MouseActivate
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
HOOK_IsHooked
(
INT
id
)
DECLSPEC_HIDDEN
;
extern
BOOL
set_capture_window
(
HWND
hwnd
,
UINT
gui_flags
,
HWND
*
prev_ret
);
extern
void
free_dce
(
struct
dce
*
dce
,
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
invalidate_dce
(
HWND
hwnd
,
const
RECT
*
rect
)
DECLSPEC_HIDDEN
;
...
...
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