Commit 0caef81d authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

dsound: Unset Spare[0] before deleting non-static critical sections.

parent b295da2d
......@@ -1027,6 +1027,7 @@ static HRESULT DirectSoundCaptureDevice_Initialize(
hr = IMMDevice_Activate(mmdevice, &IID_IAudioClient,
CLSCTX_INPROC_SERVER, NULL, (void**)&client);
if(FAILED(hr)){
device->lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&device->lock);
HeapFree(GetProcessHeap(), 0, device);
LeaveCriticalSection(&DSOUND_capturers_lock);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment