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

Francois Gouget fgouget at codeweavers.com
Mon Nov 14 04:32:27 CST 2011


---
 dlls/dsound/capture.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c
index 9e289f3..4897e17 100644
--- a/dlls/dsound/capture.c
+++ b/dlls/dsound/capture.c
@@ -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);
-- 
1.7.7.1




More information about the wine-patches mailing list