From 280258272a1364dcbb6bd2f5e515708d71406e8a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 2 Aug 2011 00:23:51 -0700 Subject: [PATCH] Make sure to handle the right interface when creating the DSound object --- dsound8.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dsound8.c b/dsound8.c index 29188a9..7cdb8ba 100644 --- a/dsound8.c +++ b/dsound8.c @@ -72,11 +72,14 @@ HRESULT DSOUND_Create(REFIID riid, void **ds) if(IsEqualIID(riid, &IID_IDirectSound8)) return E_NOINTERFACE; - hr = DSOUND_Create8(riid, ds); + hr = DSOUND_Create8(&IID_IDirectSound8, ds); if(hr == S_OK) { DS8Impl *impl = impl_from_IDirectSound8(*ds); impl->is_8 = FALSE; + + hr = IDirectSound8_QueryInterface(&impl->IDirectSound8_iface, riid, ds); + IDirectSound8_Release(&impl->IDirectSound8_iface); } return hr; } -- 2.11.4.GIT