16 Jun
2025
16 Jun
'25
9:47 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/treeview.c:
} }
- if (do_track && TREEVIEW_SendSimpleNotify(infoPtr, NM_CLICK)) + if ((do_track && TREEVIEW_SendSimpleNotify(infoPtr, NM_CLICK)) || !IsWindow(hwnd))
Calling `SetFocus(hwnd)` after the window is destroyed is probably wrong. It seems better to just return without doing anything when the window is destroyed. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8258#note_106677