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

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-03-08 16:07:46 +03:00 committed by Alexandre Julliard
parent e920b4ecff
commit 2dc49eee22
1 changed files with 3 additions and 1 deletions

View File

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