mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 01:07:17 +00:00
user32: Make HOOK_IsHooked function static.
This commit is contained in:
parent
83b66549da
commit
1bee9f4f71
|
@ -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
|
||||
*/
|
||||
|
@ -440,18 +453,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.@)
|
||||
*/
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue