From 6da80a8898dab86285a3478962139298e88f5bb7 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Thu, 31 Aug 2006 17:15:15 +0100 Subject: [PATCH] ole32: Call IOleObject_GetMiscStatus in OleCreate if a client site is passed in. --- dlls/ole32/ole2.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index 4ae9619ffb9..4d7c17b2fb5 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -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)) {