11 Jan
2023
11 Jan
'23
5 p.m.
Rémi Bernon (@rbernon) commented about dlls/windows.media.speech/recognizer.c:
error: if (session->constraints) IVector_ISpeechRecognitionConstraint_Release(session->constraints); + if (session->cs.DebugInfo) session->cs.DebugInfo->Spare[0] = 0; + DeleteCriticalSection(&session->cs);
You could avoid having to do this (and the question whether calling `DeleteCriticalSection` on a non-yet initialized CS is fine) by moving `InitializeCriticalSection` down where it cannot fail anymore. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/729#note_20701