Commit 14a7c6dd authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

Remove unused lock.

parent 919605c8
......@@ -793,7 +793,6 @@ static ULONG WINAPI IDirectSoundImpl_Release(LPDIRECTSOUND8 iface) {
RtlDeleteResource(&This->lock);
DeleteCriticalSection(&This->mixlock);
DeleteCriticalSection(&This->ds3dl_lock);
HeapFree(GetProcessHeap(),0,This);
dsound = NULL;
TRACE("(%p) released\n",This);
......@@ -1050,8 +1049,6 @@ HRESULT WINAPI DirectSoundCreate8(LPCGUID lpcGUID,LPDIRECTSOUND8 *ppDS,IUnknown
(*ippDS)->ds3dl.flRolloffFactor = DS3D_DEFAULTROLLOFFFACTOR;
(*ippDS)->ds3dl.flDopplerFactor = DS3D_DEFAULTDOPPLERFACTOR;
InitializeCriticalSection(&(*ippDS)->ds3dl_lock);
(*ippDS)->prebuf = ds_snd_queue_max;
(*ippDS)->guid = devGuid;
......
......@@ -94,7 +94,6 @@ struct IDirectSoundImpl
/* DirectSound3DListener fields */
IDirectSound3DListenerImpl* listener;
DS3DLISTENER ds3dl;
CRITICAL_SECTION ds3dl_lock;
BOOL ds3dl_need_recalc;
};
......
......@@ -1134,8 +1134,6 @@ HRESULT WINAPI IDirectSound3DListenerImpl_Create(
dsl->dsound->ds3dl_need_recalc = TRUE;
InitializeCriticalSection(&dsl->dsound->ds3dl_lock);
IDirectSound8_AddRef((LPDIRECTSOUND8)This->dsound);
*pdsl = dsl;
......
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