From 4d73f22245c18eed20bb14ca9583a71527e3f28b Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Mon, 9 Aug 2004 22:56:45 +0000 Subject: [PATCH] Remove the assert()s that checked that IDirectSoundBuffer_Lock() is given two distinct pointers. --- dlls/dsound/buffer.c | 3 --- dlls/dsound/primary.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c index 37a14a7865f..2514d4a50a9 100644 --- a/dlls/dsound/buffer.c +++ b/dlls/dsound/buffer.c @@ -635,9 +635,6 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Lock( if (writebytes > This->buflen) writebytes = This->buflen; - assert(audiobytes1!=audiobytes2); - assert(lplpaudioptr1!=lplpaudioptr2); - EnterCriticalSection(&(This->lock)); if ((writebytes == This->buflen) && diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c index 1eeaf843882..400c0e1f4ff 100644 --- a/dlls/dsound/primary.c +++ b/dlls/dsound/primary.c @@ -718,9 +718,6 @@ static HRESULT WINAPI PrimaryBufferImpl_Lock( if (writebytes > dsound->buflen) writebytes = dsound->buflen; - assert(audiobytes1!=audiobytes2); - assert(lplpaudioptr1!=lplpaudioptr2); - if (!(dsound->drvdesc.dwFlags & DSDDESC_DONTNEEDPRIMARYLOCK) && dsound->hwbuf) { HRESULT hres; hres = IDsDriverBuffer_Lock(dsound->hwbuf, -- 2.11.4.GIT