Andrew Eikum : dsound: Map MMDevAPI error to DSound error.

Alexandre Julliard julliard at winehq.org
Fri Apr 27 10:55:45 CDT 2012


Module: wine
Branch: master
Commit: 3ef92af6a8783343ace4c4bfc745940a7ca83f45
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3ef92af6a8783343ace4c4bfc745940a7ca83f45

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Thu Apr 26 14:14:59 2012 -0500

dsound: Map MMDevAPI error to DSound error.

---

 dlls/dsound/capture.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c
index 90cddb7..7970537 100644
--- a/dlls/dsound/capture.c
+++ b/dlls/dsound/capture.c
@@ -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;
         }
 




More information about the wine-cvs mailing list