Aida JonikienÄ— : comctl32: Only print TREEVIEW_HandleTimer() ERR once.
Module: wine Branch: master Commit: 602f68f23c31a82bf1fec2d9576478db278519ea URL: https://gitlab.winehq.org/wine/wine/-/commit/602f68f23c31a82bf1fec2d9576478d... Author: Aida JonikienÄ— <aidas957(a)gmail.com> Date: Sun Nov 26 11:01:26 2023 +0200 comctl32: Only print TREEVIEW_HandleTimer() ERR once. Older versions of Roblox trigger this quite a bit and it's annoying to me so let's only print it once. --- dlls/comctl32/treeview.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index c531ad75370..036afd15c69 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -4116,9 +4116,11 @@ TREEVIEW_EndEditLabelNow(TREEVIEW_INFO *infoPtr, BOOL bCancel) static LRESULT TREEVIEW_HandleTimer(TREEVIEW_INFO *infoPtr, WPARAM wParam) { + static unsigned int once; + if (wParam != TV_EDIT_TIMER) { - ERR("got unknown timer\n"); + if (!once++) ERR("got unknown timer %Id\n", wParam); return 1; }
participants (1)
-
Alexandre Julliard