Aric Stewart : msacm32: In acmDriverDetails if we are unable to load the driver then return MMSYSERR_NOTSUPPORTED as windows does .

Alexandre Julliard julliard at winehq.org
Mon Aug 24 10:08:01 CDT 2009


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

Author: Aric Stewart <aric at codeweavers.com>
Date:   Fri Aug 21 09:39:15 2009 -0500

msacm32: In acmDriverDetails if we are unable to load the driver then return MMSYSERR_NOTSUPPORTED as windows does.

---

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

diff --git a/dlls/msacm32/driver.c b/dlls/msacm32/driver.c
index e3d987f..9ca16dc 100644
--- a/dlls/msacm32/driver.c
+++ b/dlls/msacm32/driver.c
@@ -305,6 +305,8 @@ MMRESULT WINAPI acmDriverDetailsW(HACMDRIVERID hadid, PACMDRIVERDETAILSW padd, D
         paddw.cbStruct = min(padd->cbStruct, sizeof(*padd));
         memcpy(padd, &paddw, paddw.cbStruct);
     }
+    else if (mmr == MMSYSERR_NODRIVER)
+        return MMSYSERR_NOTSUPPORTED;
 
     return mmr;
 }




More information about the wine-cvs mailing list