Problem in ole32.CoCreateInstance ?
Marcus Meissner
meissner at suse.de
Mon May 5 10:35:33 CDT 2003
On Mon, May 05, 2003 at 05:02:06PM +0200, Sylvain Petreolle wrote:
> This is ole32.CoGetClassObject.
> End of wine dxdiag --debugmsg +ole before the crash :
>
> trace:ole:WINE_StringFromCLSID
> 0x40771b60->{963AB779-16A1-477C-A36D-CB5E711938F7}
> trace:ole:CoGetClassObject
> CLSID: {963ab779-16a1-477c-a36d-cb5e711938f7},
> IID: {00000001-0000-0000-c000-000000000046}
> trace:ole:COMPOBJ_DLLList_Add
> fixme:dpnhpast:DPNHPAST_DllGetClassObject :stub
> trace:ole:CoCreateInstance sanity check: hres=00000000, lpclf=00000000
> wine: Unhandled exception, starting debugger...
>
>
> > > But I dont understand why CoGetClassObject returns ok and leaves
> > lpclf
> > > set to NULL.
> > > Adding a TRACE after CoGetClassObject I get :
> > ...
> > > trace:ole:CoCreateInstance sanity check: hres=00000000,
> > lpclf=00000000
> > > <= shouldnt happen.
Changelog:
fix return code of DPNHPAST_DllGetClassObject stub.
Index: dlls/dpnhpast/main.c
===================================================================
RCS file: /home/wine/wine/dlls/dpnhpast/main.c,v
retrieving revision 1.1
diff -u -r1.1 main.c
--- dlls/dpnhpast/main.c 8 Apr 2003 03:56:05 -0000 1.1
+++ dlls/dpnhpast/main.c 5 May 2003 15:34:29 -0000
@@ -91,7 +91,7 @@
HRESULT WINAPI DPNHPAST_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID FAR)
{
FIXME(":stub\n");
- return S_OK;
+ return E_FAIL;
}
Ciao, Marcus
More information about the wine-patches
mailing list