mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 10:08:41 +00:00
Added a little armour to prevent a crash
This commit is contained in:
parent
17e9e6c0b9
commit
75a0b1a042
@ -263,6 +263,11 @@ HRESULT CControlSite::DoVerb(LONG nVerb, LPMSG lpMsg)
|
||||
HRESULT CControlSite::SetPosition(const RECT &rcPos)
|
||||
{
|
||||
NG_TRACE_METHOD(CControlSite::SetPosition);
|
||||
|
||||
if (m_spIOleInPlaceObject == NULL)
|
||||
{
|
||||
return E_UNEXPECTED;
|
||||
}
|
||||
|
||||
m_rcObjectPos = rcPos;
|
||||
m_spIOleInPlaceObject->SetObjectRects(&m_rcObjectPos, &m_rcObjectPos);
|
||||
|
Loading…
x
Reference in New Issue
Block a user