dsound: Pretend that the driver is certified.

Sebastian Lackner sebastian at fds-team.de
Wed Sep 21 06:54:58 CDT 2016


From: Michael Müller <michael at fds-team.de>

Signed-off-by: Michael Müller <michael at fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---

The tests only passed on older versions of Windows, so I decided to remove them.
See: https://newtestbot.winehq.org/JobDetails.pl?Key=25891
If preferred, we can also keep them and mark modern versions as broken(). In
practice it probably depends on the hardware/VM though.

 dlls/dsound/dsound.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c
index fb9fd66..43b252d 100644
--- a/dlls/dsound/dsound.c
+++ b/dlls/dsound/dsound.c
@@ -367,6 +367,9 @@ static HRESULT DirectSoundDevice_Initialize(DirectSoundDevice ** ppDevice, LPCGU
     device->drvcaps.dwFlags |= DSCAPS_SECONDARYMONO | DSCAPS_SECONDARYSTEREO;
     device->drvcaps.dwFlags |= DSCAPS_CONTINUOUSRATE;
 
+    /* pretend that the driver is certified */
+    device->drvcaps.dwFlags |= DSCAPS_CERTIFIED;
+
     device->drvcaps.dwPrimaryBuffers = 1;
     device->drvcaps.dwMinSecondarySampleRate = DSBFREQUENCY_MIN;
     device->drvcaps.dwMaxSecondarySampleRate = DSBFREQUENCY_MAX;
-- 
2.9.0



More information about the wine-patches mailing list