mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 02:37:38 +00:00
ole32: Do a QueryInterface for IOleLink in OleLoad, like native does.
This commit is contained in:
parent
4ad8da53f5
commit
d0b4717cdb
|
@ -1007,12 +1007,13 @@ HRESULT WINAPI OleLoad(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
if (SUCCEEDED(hres))
|
||||||
* Initialize the object with it's IPersistStorage interface.
|
/*
|
||||||
*/
|
* Initialize the object with it's IPersistStorage interface.
|
||||||
hres = IOleObject_QueryInterface(pUnk,
|
*/
|
||||||
&IID_IPersistStorage,
|
hres = IOleObject_QueryInterface(pUnk,
|
||||||
(void**)&persistStorage);
|
&IID_IPersistStorage,
|
||||||
|
(void**)&persistStorage);
|
||||||
|
|
||||||
if (SUCCEEDED(hres))
|
if (SUCCEEDED(hres))
|
||||||
{
|
{
|
||||||
|
@ -1034,6 +1035,18 @@ HRESULT WINAPI OleLoad(
|
||||||
if (pOleObject)
|
if (pOleObject)
|
||||||
IOleObject_Release(pOleObject);
|
IOleObject_Release(pOleObject);
|
||||||
|
|
||||||
|
if (SUCCEEDED(hres))
|
||||||
|
{
|
||||||
|
IOleLink *pOleLink;
|
||||||
|
HRESULT hres1;
|
||||||
|
hres1 = IUnknown_QueryInterface(pUnk, &IID_IOleLink, (void **)&pOleLink);
|
||||||
|
if (SUCCEEDED(hres1))
|
||||||
|
{
|
||||||
|
FIXME("handle OLE link\n");
|
||||||
|
IOleLink_Release(pOleLink);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (FAILED(hres))
|
if (FAILED(hres))
|
||||||
{
|
{
|
||||||
IUnknown_Release(pUnk);
|
IUnknown_Release(pUnk);
|
||||||
|
|
Loading…
Reference in a new issue