Robert Shearman : ole32: Print an error if a DLL'
s DllGetClassObject fails as this is
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jun 13 05:58:42 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: b5f7e818a172f2d520331c74003cef669dd0c2c9
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=b5f7e818a172f2d520331c74003cef669dd0c2c9
Author: Robert Shearman <rob at codeweavers.com>
Date: Mon Jun 12 16:36:45 2006 +0100
ole32: Print an error if a DLL's DllGetClassObject fails as this is
usually a good indicator of a bug elsewhere in Wine.
---
dlls/ole32/compobj.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index 796c4ab..1a8ab45 100644
--- a/dlls/ole32/compobj.c
+++ b/dlls/ole32/compobj.c
@@ -1567,6 +1567,7 @@ static HRESULT get_inproc_class_object(H
typedef HRESULT (CALLBACK *DllGetClassObjectFunc)(REFCLSID clsid, REFIID iid, LPVOID *ppv);
DllGetClassObjectFunc DllGetClassObject;
WCHAR dllpath[MAX_PATH+1];
+ HRESULT hr;
if (COM_RegReadPath(hkeydll, NULL, NULL, dllpath, ARRAYSIZE(dllpath)) != ERROR_SUCCESS)
{
@@ -1592,7 +1593,12 @@ static HRESULT get_inproc_class_object(H
/* OK: get the ClassObject */
COMPOBJ_DLLList_Add( hLibrary );
- return DllGetClassObject(rclsid, riid, ppv);
+ hr = DllGetClassObject(rclsid, riid, ppv);
+
+ if (hr != S_OK)
+ ERR("DllGetClassObject returned error 0x%08lx\n", hr);
+
+ return hr;
}
/***********************************************************************
More information about the wine-cvs
mailing list