[PATCH v2 3/6] windows.gaming.input: Reset spare CS pointer before deleting it.
Rémi Bernon
wine at gitlab.winehq.org
Fri May 6 08:39:06 CDT 2022
From: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
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 );
}
--
GitLab
https://gitlab.winehq.org/wine/wine/-/merge_requests/43
More information about the wine-devel
mailing list