dsound: Indentation fix.
This commit is contained in:
parent
10fb1eac9c
commit
b0e95d27a9
@ -607,10 +607,8 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Unlock(IDirectSoundBuffer8 *iface,
|
|||||||
if (!p2)
|
if (!p2)
|
||||||
x2 = 0;
|
x2 = 0;
|
||||||
|
|
||||||
if((p1 && ((BYTE*)p1 < This->buffer->memory ||
|
if((p1 && ((BYTE*)p1 < This->buffer->memory || (BYTE*)p1 >= This->buffer->memory + This->buflen)) ||
|
||||||
(BYTE*)p1 >= This->buffer->memory + This->buflen)) ||
|
(p2 && ((BYTE*)p2 < This->buffer->memory || (BYTE*)p2 >= This->buffer->memory + This->buflen)))
|
||||||
(p2 && ((BYTE*)p2 < This->buffer->memory ||
|
|
||||||
(BYTE*)p2 >= This->buffer->memory + This->buflen)))
|
|
||||||
return DSERR_INVALIDPARAM;
|
return DSERR_INVALIDPARAM;
|
||||||
|
|
||||||
if (x1 || x2)
|
if (x1 || x2)
|
||||||
|
@ -1085,10 +1085,8 @@ static HRESULT WINAPI PrimaryBufferImpl_Unlock(IDirectSoundBuffer *iface, void *
|
|||||||
return DSERR_PRIOLEVELNEEDED;
|
return DSERR_PRIOLEVELNEEDED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((p1 && ((BYTE*)p1 < device->buffer ||
|
if ((p1 && ((BYTE*)p1 < device->buffer || (BYTE*)p1 >= device->buffer + device->buflen)) ||
|
||||||
(BYTE*)p1 >= device->buffer + device->buflen)) ||
|
(p2 && ((BYTE*)p2 < device->buffer || (BYTE*)p2 >= device->buffer + device->buflen)))
|
||||||
(p2 && ((BYTE*)p2 < device->buffer ||
|
|
||||||
(BYTE*)p2 >= device->buffer + device->buflen)))
|
|
||||||
return DSERR_INVALIDPARAM;
|
return DSERR_INVALIDPARAM;
|
||||||
|
|
||||||
return DS_OK;
|
return DS_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user