mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
user32: Remove duplicated get_hook_proc() function.
This commit is contained in:
parent
21204f579e
commit
4715dbec24
@ -314,7 +314,7 @@ static LRESULT call_hook_proc( HOOKPROC proc, INT id, INT code, WPARAM wparam, L
|
||||
*
|
||||
* Retrieve the hook procedure real value for a module-relative proc
|
||||
*/
|
||||
static void *get_hook_proc( void *proc, const WCHAR *module )
|
||||
void *get_hook_proc( void *proc, const WCHAR *module )
|
||||
{
|
||||
HMODULE mod;
|
||||
|
||||
|
@ -1986,25 +1986,6 @@ static inline void call_sendmsg_callback( SENDASYNCPROC callback, HWND hwnd, UIN
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* get_hook_proc
|
||||
*
|
||||
* Retrieve the hook procedure real value for a module-relative proc
|
||||
*/
|
||||
static void *get_hook_proc( void *proc, const WCHAR *module )
|
||||
{
|
||||
HMODULE mod;
|
||||
|
||||
if (!(mod = GetModuleHandleW(module)))
|
||||
{
|
||||
TRACE( "loading %s\n", debugstr_w(module) );
|
||||
/* FIXME: the library will never be freed */
|
||||
if (!(mod = LoadLibraryW(module))) return NULL;
|
||||
}
|
||||
return (char *)mod + (ULONG_PTR)proc;
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* peek_message
|
||||
*
|
||||
|
@ -235,6 +235,7 @@ extern BOOL CLIPBOARD_ReleaseOwner(void) DECLSPEC_HIDDEN;
|
||||
extern BOOL FOCUS_MouseActivate( HWND hwnd ) DECLSPEC_HIDDEN;
|
||||
extern BOOL HOOK_IsHooked( INT id ) DECLSPEC_HIDDEN;
|
||||
extern void erase_now( HWND hwnd, UINT rdw_flags ) DECLSPEC_HIDDEN;
|
||||
extern void *get_hook_proc( void *proc, const WCHAR *module );
|
||||
extern LRESULT call_current_hook( HHOOK hhook, INT code, WPARAM wparam, LPARAM lparam ) DECLSPEC_HIDDEN;
|
||||
extern BOOL map_wparam_AtoW( UINT message, WPARAM *wparam, enum wm_char_mapping mapping ) DECLSPEC_HIDDEN;
|
||||
extern LRESULT MSG_SendInternalMessageTimeout( DWORD dest_pid, DWORD dest_tid,
|
||||
|
Loading…
Reference in New Issue
Block a user