dmime: Accept IDirectMusicPerformance2 in QueryInterface

Samuel Lidén Borell samuellb at bredband.net
Tue Jul 25 16:12:21 CDT 2006


Version 2 of the IDirectMusicPerformance interface is not "accepted" in
it's QueryInterface. This patch fixes that bug and makes FrozenFruits
start without crashing (apparently it lacks error handling).

---

 dlls/dmime/performance.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

574507dd5cd12a255d47accc8bbba48ff9e3ea0d
diff --git a/dlls/dmime/performance.c b/dlls/dmime/performance.c
index 9489be1..df1d23e 100644
--- a/dlls/dmime/performance.c
+++ b/dlls/dmime/performance.c
@@ -170,6 +170,7 @@ static HRESULT WINAPI IDirectMusicPerfor

   if (IsEqualIID (riid, &IID_IUnknown) ||
       IsEqualIID (riid, &IID_IDirectMusicPerformance) ||
+      IsEqualIID (riid, &IID_IDirectMusicPerformance2) ||
       IsEqualIID (riid, &IID_IDirectMusicPerformance8)) {
     IUnknown_AddRef(iface);
     *ppobj = This;
-- 
1.2.4





More information about the wine-patches mailing list