Commit 3cf1e46d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ole32: Clean up OleRun.

parent 9dd276bf
...@@ -669,15 +669,17 @@ GetRunningObjectTable(DWORD reserved, LPRUNNINGOBJECTTABLE *pprot) ...@@ -669,15 +669,17 @@ GetRunningObjectTable(DWORD reserved, LPRUNNINGOBJECTTABLE *pprot)
HRESULT WINAPI OleRun(LPUNKNOWN pUnknown) HRESULT WINAPI OleRun(LPUNKNOWN pUnknown)
{ {
IRunnableObject *runable; IRunnableObject *runable;
IRunnableObject *This = (IRunnableObject *)pUnknown; HRESULT hres;
LRESULT ret;
ret = IRunnableObject_QueryInterface(This,&IID_IRunnableObject,(LPVOID*)&runable); TRACE("(%p)\n", pUnknown);
if (ret)
return 0; /* Appears to return no error. */ hres = IUnknown_QueryInterface(pUnknown, &IID_IRunnableObject, (void**)&runable);
ret = IRunnableObject_Run(runable,NULL); if (FAILED(hres))
return S_OK; /* Appears to return no error. */
hres = IRunnableObject_Run(runable, NULL);
IRunnableObject_Release(runable); IRunnableObject_Release(runable);
return ret; return hres;
} }
/****************************************************************************** /******************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment