24 Aug
2022
24 Aug
'22
8:19 p.m.
On 8/24/22 13:42, Connor McAdams wrote:
From: Connor McAdams <cmcadams(a)codeweavers.com>
It is possible for a thread that creates an MTA to call CoUninitialize() and not destroy the MTA if another thread has entered the MTA in the meantime. If the original thread then creates an STA, subsequent attempts to find the MTA with 'apartment_findfromtid' will get the original thread's STA. To avoid this, don't set a TID value in the stub manager IPID value to indicate that the stub resides in the MTA.
Signed-off-by: Connor McAdams <cmcadams(a)codeweavers.com> --- dlls/combase/stubmanager.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Is it possible to add a test for this?