From 9ee4809dc3dac7a281188ec133b20e79798c003c Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Thu, 15 Mar 2012 08:17:10 +0100 Subject: [PATCH] strmbase: Allow constructor function to be NULL but display an error saying we don't implement the CLSID. --- dlls/strmbase/dllfunc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/strmbase/dllfunc.c b/dlls/strmbase/dllfunc.c index 44b115ee1b6..34e03e6d391 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)); + return CLASS_E_CLASSNOTAVAILABLE; + } + else if (!pList->m_lpfnNew) + { + FIXME("%s: class not implemented yet.\n", debugstr_guid(rclsid)); return CLASS_E_CLASSNOTAVAILABLE; }