14 Sep
2022
14 Sep
'22
2:40 p.m.
On Wed Sep 14 14:30:53 2022 +0000, Esme Povirk wrote:
Yes but if it still has WM_GET_UIA_PROV_FROM_HWND messages in the queue, or is processing one, the thread may do COM things. Any `WM_GET_UIA_PROV_FROM_HWND` messages are accompanied by the thread's refcnt being incremented, and it will only end up decremented once a node retrieved from the thread is released (which means we don't need to do anymore COM things), or it fails to get a node. So we shouldn't worry about that. We shouldn't ever be in a situation where we're still processing a `WM_GET_UIA_PROV_FROM_HWND` and the thread refcnt is 0.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/832#note_8421