[PATCH] quartz: show fixme for Parser_OutputPin_QueryInterface only once

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Oct 20 13:56:14 CDT 2015


This prevents the game Majesty Gold HD from flooding the console with
"No interface for {56a868a5-0ad4-11ce-b03a-0020af0ba770}" messages.

Signed-off-by: Jonas Maebe <jonas.maebe at elis.ugent.be>
---
 dlls/quartz/parser.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dlls/quartz/parser.c b/dlls/quartz/parser.c
index cd8d93d..a9384a5 100644
--- a/dlls/quartz/parser.c
+++ b/dlls/quartz/parser.c
@@ -634,6 +634,7 @@ static HRESULT WINAPI Parser_OutputPin_BreakConnect(BaseOutputPin *This)
 
 static HRESULT WINAPI Parser_OutputPin_QueryInterface(IPin * iface, REFIID riid, LPVOID * ppv)
 {
+    static int once = 0;
     Parser_OutputPin *This = unsafe_impl_Parser_OutputPin_from_IPin(iface);
 
     TRACE("(%s, %p)\n", qzdebugstr_guid(riid), ppv);
@@ -654,7 +655,11 @@ static HRESULT WINAPI Parser_OutputPin_QueryInterface(IPin * iface, REFIID riid,
         return S_OK;
     }
 
-    FIXME("No interface for %s!\n", qzdebugstr_guid(riid));
+    if (!once)
+    {
+      FIXME("No interface for %s!\n", qzdebugstr_guid(riid));
+      once = 1;
+    }
 
     return E_NOINTERFACE;
 }
-- 
2.5.0




More information about the wine-patches mailing list