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:
Zhiyi Zhang 2022-04-09 12:14:46 +08:00 committed by Alexandre Julliard
parent ce9a42e8bd
commit be8acff719
2 changed files with 6 additions and 6 deletions

View file

@ -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;
}

View file

@ -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