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

Christian Costa titan.costa at gmail.com
Thu Mar 29 02:00:39 CDT 2012


Try 2: Do not display the dllname in case of success. It can be retreive from the registry.

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

diff --git a/dlls/strmbase/dllfunc.c b/dlls/strmbase/dllfunc.c
index 34e03e6..5c9b8ab 100644
--- a/dlls/strmbase/dllfunc.c
+++ b/dlls/strmbase/dllfunc.c
@@ -362,7 +362,10 @@ HRESULT WINAPI STRMBASE_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *
 
     if (i == g_cTemplates)
     {
-        ERR("%s: no class found.\n", debugstr_guid(rclsid));
+        char dllname[MAX_PATH];
+        if (!GetModuleFileNameA(g_hInst, dllname, sizeof(dllname)))
+            strcpy(dllname, "???");
+        ERR("%s: no class found in %s.\n", debugstr_guid(rclsid), dllname);
         return CLASS_E_CLASSNOTAVAILABLE;
     }
     else if (!pList->m_lpfnNew)




More information about the wine-patches mailing list