dsound: Map MMDevAPI error to DSound error.

This commit is contained in:
Andrew Eikum 2012-04-26 14:14:59 -05:00 committed by Alexandre Julliard
parent b11d8db279
commit 3ef92af6a8
1 changed files with 2 additions and 0 deletions

View File

@ -705,6 +705,8 @@ static HRESULT IDirectSoundCaptureBufferImpl_Create(
HeapFree(GetProcessHeap(), 0, This->pdscbd);
This->device->capture_buffer = 0;
HeapFree( GetProcessHeap(), 0, This );
if(err == AUDCLNT_E_UNSUPPORTED_FORMAT)
return DSERR_BADFORMAT;
return err;
}