Pass correct pointer to CoCreateInstance in SHLoadInProc.

This commit is contained in:
Huw Davies 2003-05-13 22:19:01 +00:00 committed by Alexandre Julliard
parent 565b92b042
commit 663dbc963f
1 changed files with 11 additions and 9 deletions

View File

@ -690,16 +690,18 @@ DWORD WINAPI SHHelpShortcuts_RunDLL (DWORD dwArg1, DWORD dwArg2, DWORD dwArg3, D
DWORD WINAPI SHLoadInProc (REFCLSID rclsid)
{
IUnknown * pUnk = NULL;
TRACE("%s\n", debugstr_guid(rclsid));
void *ptr = NULL;
CoCreateInstance(rclsid, NULL, CLSCTX_INPROC_SERVER, &IID_IUnknown,(LPVOID*)pUnk);
if(pUnk)
{
IUnknown_Release(pUnk);
return NOERROR;
}
return DISP_E_MEMBERNOTFOUND;
TRACE("%s\n", debugstr_guid(rclsid));
CoCreateInstance(rclsid, NULL, CLSCTX_INPROC_SERVER, &IID_IUnknown,&ptr);
if(ptr)
{
IUnknown * pUnk = ptr;
IUnknown_Release(pUnk);
return NOERROR;
}
return DISP_E_MEMBERNOTFOUND;
}
/*************************************************************************