Commit 6da80a88 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

ole32: Call IOleObject_GetMiscStatus in OleCreate if a client site is passed in.

parent ccb634fd
......@@ -2311,7 +2311,14 @@ HRESULT WINAPI OleCreate(
hres = IStorage_SetClass(pStg, rclsid);
if (pClientSite && SUCCEEDED(hres))
{
hres = IUnknown_QueryInterface(pUnk, &IID_IOleObject, (LPVOID*)&pOleObject);
if (SUCCEEDED(hres))
{
DWORD dwStatus;
hres = IOleObject_GetMiscStatus(pOleObject, DVASPECT_CONTENT, &dwStatus);
}
}
if (SUCCEEDED(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