Nikolay Sivov : mfplat: Get rid of unsupported interface trace for 1D buffers.

Alexandre Julliard julliard at winehq.org
Tue Mar 17 17:21:09 CDT 2020


Module: wine
Branch: master
Commit: f056355071dea0549bee41399bcea5a9136ea54a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f056355071dea0549bee41399bcea5a9136ea54a

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Mar 17 17:10:34 2020 +0300

mfplat: Get rid of unsupported interface trace for 1D buffers.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mfplat/buffer.c | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/dlls/mfplat/buffer.c b/dlls/mfplat/buffer.c
index 323603cf21..05e1ce5fd6 100644
--- a/dlls/mfplat/buffer.c
+++ b/dlls/mfplat/buffer.c
@@ -97,16 +97,13 @@ static HRESULT WINAPI memory_buffer_QueryInterface(IMFMediaBuffer *iface, REFIID
             IsEqualIID(riid, &IID_IUnknown))
     {
         *out = &buffer->IMFMediaBuffer_iface;
-    }
-    else
-    {
-        FIXME("(%s, %p)\n", debugstr_guid(riid), out);
-        *out = NULL;
-        return E_NOINTERFACE;
+        IMFMediaBuffer_AddRef(iface);
+        return S_OK;
     }
 
-    IUnknown_AddRef((IUnknown*)*out);
-    return S_OK;
+    WARN("Unsupported %s.\n", debugstr_guid(riid));
+    *out = NULL;
+    return E_NOINTERFACE;
 }
 
 static ULONG WINAPI memory_buffer_AddRef(IMFMediaBuffer *iface)




More information about the wine-cvs mailing list