mshtml: Check for This->frame.

This commit is contained in:
Marcus Meissner 2008-01-13 12:27:14 +01:00 committed by Alexandre Julliard
parent ec4a46f93a
commit fa6042fc8d
1 changed files with 2 additions and 1 deletions

View File

@ -629,7 +629,8 @@ static HRESULT exec_editmode(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
call_set_active_object(This->ip_window, ACTOBJ(This));
memset(&rcBorderWidths, 0, sizeof(rcBorderWidths));
IOleInPlaceFrame_SetBorderSpace(This->frame, &rcBorderWidths);
if (This->frame)
IOleInPlaceFrame_SetBorderSpace(This->frame, &rcBorderWidths);
}
return S_OK;