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

Christian Costa titan.costa at gmail.com
Wed Mar 14 15:52:16 CDT 2012


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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/strmbase/dllfunc.c b/dlls/strmbase/dllfunc.c
index 44b115e..b9379e1 100644
--- a/dlls/strmbase/dllfunc.c
+++ b/dlls/strmbase/dllfunc.c
@@ -360,7 +360,7 @@ HRESULT WINAPI STRMBASE_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *
             break;
     }
 
-    if (i == g_cTemplates)
+    if ((i == g_cTemplates) || !pList->m_lpfnNew)
     {
         FIXME("%s: no class found.\n", debugstr_guid(rclsid));
         return CLASS_E_CLASSNOTAVAILABLE;




More information about the wine-patches mailing list