[PATCH] include: Avoid a C++ keyword for RegisterUserApiHook().
Zhiyi Zhang
zzhang at codeweavers.com
Fri Apr 8 23:14:46 CDT 2022
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52787
Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
dlls/user32/hook.c | 10 +++++-----
include/winuser.h | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/user32/hook.c b/dlls/user32/hook.c
index 6dc8c571c0c..e6db8590934 100644
--- a/dlls/user32/hook.c
+++ b/dlls/user32/hook.c
@@ -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;
}
diff --git a/include/winuser.h b/include/winuser.h
index bb585efd16d..4f79face860 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -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
--
2.32.0
More information about the wine-devel
mailing list