From 3af51650f1b1dae29edd145610b2698780674ab2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Mon, 29 Feb 2016 13:55:20 +0100
Subject: dsound: Pretend that our driver is certified.

---
 dlls/dsound/dsound.c       | 3 +++
 dlls/dsound/tests/dsound.c | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c
index ccefd1f..fa36d3f 100644
--- a/dlls/dsound/dsound.c
+++ b/dlls/dsound/dsound.c
@@ -371,6 +371,9 @@ static HRESULT DirectSoundDevice_Initialize(DirectSoundDevice ** ppDevice, LPCGU
     device->drvcaps.dwFlags |= DSCAPS_SECONDARYMONO | DSCAPS_SECONDARYSTEREO;
     device->drvcaps.dwFlags |= DSCAPS_CONTINUOUSRATE;
 
+    /* the driver is certified */
+    device->drvcaps.dwFlags |= DSCAPS_CERTIFIED;
+
     device->drvcaps.dwPrimaryBuffers = 1;
     device->drvcaps.dwMinSecondarySampleRate = DSBFREQUENCY_MIN;
     device->drvcaps.dwMaxSecondarySampleRate = DSBFREQUENCY_MAX;
diff --git a/dlls/dsound/tests/dsound.c b/dlls/dsound/tests/dsound.c
index 78364ed..8449ed7 100644
--- a/dlls/dsound/tests/dsound.c
+++ b/dlls/dsound/tests/dsound.c
@@ -129,6 +129,10 @@ static void IDirectSound_test(LPDIRECTSOUND dso, BOOL initialized,
     rc=IDirectSound_GetCaps(dso,&dscaps);
     ok(rc==DS_OK,"IDirectSound_GetCaps() failed: %08x\n",rc);
 
+    /* All modern WDM drivers are 'certified' */
+    ok(dscaps.dwFlags & DSCAPS_CERTIFIED, "Expected driver to have "
+        "DSCAPS_CERTIFIED flag set\n");
+
     rc=IDirectSound_Compact(dso);
     ok(rc==DSERR_PRIOLEVELNEEDED,"IDirectSound_Compact() failed: %08x\n", rc);
 
-- 
2.7.1

