Remove the assert()s that checked that IDirectSoundBuffer_Lock() is

given two distinct pointers.
This commit is contained in:
Francois Gouget 2004-08-09 22:56:45 +00:00 committed by Alexandre Julliard
parent de17950f6b
commit 4d73f22245
2 changed files with 0 additions and 6 deletions

View File

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

View File

@ -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,