[PATCH] strmbase: Display dll in which we are searching a class to instanciate.

Christian Costa titan.costa at gmail.com
Fri Mar 16 01:54:35 CDT 2012


strmbase being shared with several dll, it is important to display the dll name.
---
 dlls/strmbase/dllfunc.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/strmbase/dllfunc.c b/dlls/strmbase/dllfunc.c
index 34e03e6..2256c1b 100644
--- a/dlls/strmbase/dllfunc.c
+++ b/dlls/strmbase/dllfunc.c
@@ -342,6 +342,7 @@ HRESULT WINAPI STRMBASE_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *
     const FactoryTemplate *pList = g_Templates;
     IClassFactoryImpl *factory;
     int i;
+    char dllname[128];
 
     TRACE("(%s,%s,%p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
 
@@ -360,14 +361,17 @@ HRESULT WINAPI STRMBASE_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *
             break;
     }
 
+    if (!GetModuleFileNameA(g_hInst, dllname, sizeof(dllname)))
+        strcpy(dllname, "???");
+
     if (i == g_cTemplates)
     {
-        ERR("%s: no class found.\n", debugstr_guid(rclsid));
+        ERR("%s: no class found in %s.\n", debugstr_guid(rclsid), dllname);
         return CLASS_E_CLASSNOTAVAILABLE;
     }
     else if (!pList->m_lpfnNew)
     {
-        FIXME("%s: class not implemented yet.\n", debugstr_guid(rclsid));
+        FIXME("%s: class not implemented yet in %s.\n", debugstr_guid(rclsid), dllname);
         return CLASS_E_CLASSNOTAVAILABLE;
     }
 




More information about the wine-patches mailing list