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

This commit is contained in:
Francois Gouget 2011-11-14 11:32:27 +01:00 committed by Alexandre Julliard
parent b295da2d86
commit 0caef81de2
1 changed files with 1 additions and 0 deletions

View File

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