[PATCH] strmbase: Allow constructor function to be NULL but display an error saying we don't implement the CLSID. (try 2)

Christian Costa titan.costa at gmail.com
Thu Mar 15 02:17:10 CDT 2012

This time show a different message for class that are not implemented yet.

This enables to register CLSID in the registry without implementing them in the dll. This allows to do all registration
done in the registry with regsrv32 and when we switch to native dll it is not needed to register it again.
Typicall in qcap, we can register all 10 CLSID whereas only 2 are implement currently.
 dlls/strmbase/dllfunc.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/dlls/strmbase/dllfunc.c b/dlls/strmbase/dllfunc.c
index 44b115e..34e03e6 100644
--- a/dlls/strmbase/dllfunc.c
+++ b/dlls/strmbase/dllfunc.c
@@ -362,7 +362,12 @@ HRESULT WINAPI STRMBASE_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *
     if (i == g_cTemplates)
-        FIXME("%s: no class found.\n", debugstr_guid(rclsid));
+        ERR("%s: no class found.\n", debugstr_guid(rclsid));
+    }
+    else if (!pList->m_lpfnNew)
+    {
+        FIXME("%s: class not implemented yet.\n", debugstr_guid(rclsid));

More information about the wine-patches mailing list