Rémi Bernon : windows.gaming.input: Reset spare CS pointer before deleting it.
Module: wine Branch: master Commit: c3c11d08037dac90f5fac4151884f0f08211d1e2 URL: https://source.winehq.org/git/wine.git/?a=commit;h=c3c11d08037dac90f5fac4151... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Fri May 6 13:05:36 2022 +0200 windows.gaming.input: Reset spare CS pointer before deleting it. Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/windows.gaming.input/async.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/windows.gaming.input/async.c b/dlls/windows.gaming.input/async.c index dfcb4144e74..fc593bc6121 100644 --- a/dlls/windows.gaming.input/async.c +++ b/dlls/windows.gaming.input/async.c @@ -98,6 +98,7 @@ static ULONG WINAPI async_impl_Release( IWineAsyncInfoImpl *iface ) IAsyncInfo_Close( &impl->IAsyncInfo_iface ); if (impl->param) IUnknown_Release( impl->param ); if (impl->invoker) IUnknown_Release( impl->invoker ); + impl->cs.DebugInfo->Spare[0] = 0; DeleteCriticalSection( &impl->cs ); free( impl ); }
participants (1)
-
Alexandre Julliard