Commit 4d73f222 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

given two distinct pointers.
parent de17950f
......@@ -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) &&
......
......@@ -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,
......
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