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

This commit is contained in:
Robert Shearman 2006-08-31 17:15:15 +01:00 committed by Alexandre Julliard
parent ccb634fdee
commit 6da80a8898
1 changed files with 7 additions and 0 deletions

View File

@ -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))
{