include: Avoid a C++ keyword for RegisterUserApiHook().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52787 Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ce9a42e8bd
commit
be8acff719
|
@ -502,16 +502,16 @@ BOOL WINAPI IsWinEventHookInstalled(DWORD dwEvent)
|
|||
}
|
||||
|
||||
/* Undocumented RegisterUserApiHook() */
|
||||
BOOL WINAPI RegisterUserApiHook(const struct user_api_hook *new, struct user_api_hook *old)
|
||||
BOOL WINAPI RegisterUserApiHook(const struct user_api_hook *new_hook, struct user_api_hook *old_hook)
|
||||
{
|
||||
if (!new)
|
||||
if (!new_hook)
|
||||
return FALSE;
|
||||
|
||||
USER_Lock();
|
||||
hooked_user_api = *new;
|
||||
hooked_user_api = *new_hook;
|
||||
user_api = &hooked_user_api;
|
||||
if (old)
|
||||
*old = original_user_api;
|
||||
if (old_hook)
|
||||
*old_hook = original_user_api;
|
||||
USER_Unlock();
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -4444,7 +4444,7 @@ struct user_api_hook
|
|||
LRESULT (WINAPI *pScrollBarWndProc)(HWND, UINT, WPARAM, LPARAM, BOOL);
|
||||
};
|
||||
|
||||
WINUSERAPI BOOL WINAPI RegisterUserApiHook(const struct user_api_hook *new, struct user_api_hook *old);
|
||||
WINUSERAPI BOOL WINAPI RegisterUserApiHook(const struct user_api_hook *new_hook, struct user_api_hook *old_hook);
|
||||
WINUSERAPI void WINAPI UnregisterUserApiHook(void);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue