Pass correct pointer to CoCreateInstance in SHLoadInProc.
This commit is contained in:
parent
565b92b042
commit
663dbc963f
|
@ -690,16 +690,18 @@ DWORD WINAPI SHHelpShortcuts_RunDLL (DWORD dwArg1, DWORD dwArg2, DWORD dwArg3, D
|
||||||
|
|
||||||
DWORD WINAPI SHLoadInProc (REFCLSID rclsid)
|
DWORD WINAPI SHLoadInProc (REFCLSID rclsid)
|
||||||
{
|
{
|
||||||
IUnknown * pUnk = NULL;
|
void *ptr = NULL;
|
||||||
TRACE("%s\n", debugstr_guid(rclsid));
|
|
||||||
|
|
||||||
CoCreateInstance(rclsid, NULL, CLSCTX_INPROC_SERVER, &IID_IUnknown,(LPVOID*)pUnk);
|
TRACE("%s\n", debugstr_guid(rclsid));
|
||||||
if(pUnk)
|
|
||||||
{
|
CoCreateInstance(rclsid, NULL, CLSCTX_INPROC_SERVER, &IID_IUnknown,&ptr);
|
||||||
IUnknown_Release(pUnk);
|
if(ptr)
|
||||||
return NOERROR;
|
{
|
||||||
}
|
IUnknown * pUnk = ptr;
|
||||||
return DISP_E_MEMBERNOTFOUND;
|
IUnknown_Release(pUnk);
|
||||||
|
return NOERROR;
|
||||||
|
}
|
||||||
|
return DISP_E_MEMBERNOTFOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue