Commit be8acff7 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

include: Avoid a C++ keyword for RegisterUserApiHook().

parent ce9a42e8
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment