Commit 2dc49eee authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ieframe: Handle CreateView() failure in ActivateMe() (Coverity).

parent e920b4ec
......@@ -390,8 +390,10 @@ static HRESULT WINAPI OleDocumentSite_ActivateMe(IOleDocumentSite *iface,
if(FAILED(hres))
return hres;
IOleDocument_CreateView(oledoc, (IOleInPlaceSite*) &This->IOleInPlaceSiteEx_iface, NULL, 0, &This->view);
hres = IOleDocument_CreateView(oledoc, (IOleInPlaceSite*) &This->IOleInPlaceSiteEx_iface, NULL, 0, &This->view);
IOleDocument_Release(oledoc);
if(FAILED(hres))
return hres;
GetClientRect(This->hwnd, &rect);
IOleDocumentView_SetRect(This->view, &rect);
......
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