dsound: DirectSoundDevice_RemoveBuffer() cannot fail.

This commit is contained in:
Michael Stefaniuc 2012-09-25 23:25:45 +02:00 committed by Alexandre Julliard
parent 4e06eead8f
commit cea6329483
2 changed files with 2 additions and 9 deletions

View File

@ -1080,12 +1080,9 @@ HRESULT DirectSoundDevice_AddBuffer(
* Remove secondary buffer from buffer list.
* Gets exclusive access to buffer for writing.
*/
HRESULT DirectSoundDevice_RemoveBuffer(
DirectSoundDevice * device,
IDirectSoundBufferImpl * pDSB)
void DirectSoundDevice_RemoveBuffer(DirectSoundDevice * device, IDirectSoundBufferImpl * pDSB)
{
int i;
HRESULT hr = DS_OK;
TRACE("(%p, %p)\n", device, pDSB);
@ -1108,6 +1105,4 @@ HRESULT DirectSoundDevice_RemoveBuffer(
TRACE("buffer count is now %d\n", device->nrofbuffers);
RtlReleaseResource(&(device->buffer_list_lock));
return hr;
}

View File

@ -118,9 +118,7 @@ HRESULT DirectSoundDevice_Initialize(
HRESULT DirectSoundDevice_AddBuffer(
DirectSoundDevice * device,
IDirectSoundBufferImpl * pDSB) DECLSPEC_HIDDEN;
HRESULT DirectSoundDevice_RemoveBuffer(
DirectSoundDevice * device,
IDirectSoundBufferImpl * pDSB) DECLSPEC_HIDDEN;
void DirectSoundDevice_RemoveBuffer(DirectSoundDevice * device, IDirectSoundBufferImpl * pDSB) DECLSPEC_HIDDEN;
HRESULT DirectSoundDevice_CreateSoundBuffer(
DirectSoundDevice * device,
LPCDSBUFFERDESC dsbd,