- Fix one more dsound_winetest dsound8 failure
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Tue, 3 Nov 2009 19:20:59 +0000 (19:20 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Tue, 3 Nov 2009 19:20:59 +0000 (19:20 +0000)
- Register IDirectSound8, IDirectSoundCapture8 with COM

svn path=/trunk/; revision=43936

reactos/dll/directx/dsound_new/directsound.c
reactos/dll/directx/dsound_new/dsound.c

index c2e1687..12b03cf 100644 (file)
@@ -353,6 +353,14 @@ IDirectSound8_fnVerifyCertification(
     LPDIRECTSOUND8 iface,
     LPDWORD pdwCertified)
 {
     LPDIRECTSOUND8 iface,
     LPDWORD pdwCertified)
 {
+    LPCDirectSoundImpl This = (LPCDirectSoundImpl)CONTAINING_RECORD(iface, CDirectSoundImpl, lpVtbl);
+
+    if (!This->bInitialized)
+    {
+        /* object not yet initialized */
+        return DSERR_UNINITIALIZED;
+    }
+
     UNIMPLEMENTED;
     return DS_CERTIFIED;
 }
     UNIMPLEMENTED;
     return DS_CERTIFIED;
 }
index a0f5c37..e8322eb 100644 (file)
@@ -22,10 +22,18 @@ static INTERFACE_TABLE InterfaceTable[] =
         &CLSID_DirectSoundCapture,
         NewDirectSoundCapture
     },
         &CLSID_DirectSoundCapture,
         NewDirectSoundCapture
     },
+    {
+        &CLSID_DirectSoundCapture8,
+        NewDirectSoundCapture
+    },
     {
         &CLSID_DirectSound,
         NewDirectSound
     },
     {
         &CLSID_DirectSound,
         NewDirectSound
     },
+    {
+        &CLSID_DirectSound8,
+        NewDirectSound
+    },
     {
         NULL,
         NULL
     {
         NULL,
         NULL