Francois Gouget : dsound: Unset Spare[0] before deleting non-static critical sections.
Alexandre Julliard
julliard at winehq.org
Mon Nov 14 13:33:59 CST 2011
Module: wine
Branch: master
Commit: 0caef81de2e67dbf1eb7cbaea549371c51e48806
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0caef81de2e67dbf1eb7cbaea549371c51e48806
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Mon Nov 14 11:32:27 2011 +0100
dsound: Unset Spare[0] before deleting non-static critical sections.
---
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);
More information about the wine-cvs
mailing list