From: Bernhard Kölbl <bkoelbl@codeweavers.com> --- dlls/win32u/spy.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dlls/win32u/spy.c b/dlls/win32u/spy.c index 14a25534d8e..c86d7944257 100644 --- a/dlls/win32u/spy.c +++ b/dlls/win32u/spy.c @@ -1146,6 +1146,13 @@ static const char * const WINEMessageTypeNames[SPY_MAX_WINEMSGNUM + 1] = "WM_WINE_SETPIXELFORMAT", }; +#define SPY_MAX_WINE_DRIVER_MSGNUM (WM_WINE_SETCURSOR - WM_WINE_CLIPCURSOR) +static const char * const wine_driver_message_type_names[SPY_MAX_WINE_DRIVER_MSGNUM + 1] = +{ + "WM_WINE_CLIPCURSOR", + "WM_WINE_SETCURSOR", +}; + /* Virtual key names */ #define SPY_MAX_VKKEYSNUM 255 static const char * const VK_KeyNames[SPY_MAX_VKKEYSNUM + 1] = @@ -2074,6 +2081,9 @@ static const char *SPY_GetMsgInternal( UINT msg ) if (msg >= WM_WINE_DESTROYWINDOW && msg <= WM_WINE_DESTROYWINDOW + SPY_MAX_WINEMSGNUM) return WINEMessageTypeNames[msg-WM_WINE_DESTROYWINDOW]; + if (msg >= WM_WINE_CLIPCURSOR && msg <= WM_WINE_CLIPCURSOR + SPY_MAX_WINE_DRIVER_MSGNUM) + return wine_driver_message_type_names[msg-WM_WINE_CLIPCURSOR]; + return NULL; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/11031