Commit 3ef92af6 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

dsound: Map MMDevAPI error to DSound error.

parent b11d8db2
......@@ -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;
}
......
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