Remove the assert()s that checked that IDirectSoundBuffer_Lock() is
given two distinct pointers.
This commit is contained in:
parent
de17950f6b
commit
4d73f22245
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue