windows.gaming.input: Reset spare CS pointer before deleting it.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2022-05-06 13:05:36 +02:00 committed by Alexandre Julliard
parent d7701deddc
commit c3c11d0803
1 changed files with 1 additions and 0 deletions

View File

@ -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 );
}