riched20: Handle QI failure in ME_GetOLEObjectSize.
This commit is contained in:
parent
37d628cdc9
commit
3881adf244
|
@ -1586,7 +1586,12 @@ void ME_GetOLEObjectSize(const ME_Context *c, ME_Run *run, SIZE *pSize)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
IOleObject_QueryInterface(run->ole_obj->poleobj, &IID_IDataObject, (void**)&ido);
|
if (IOleObject_QueryInterface(run->ole_obj->poleobj, &IID_IDataObject, (void**)&ido) != S_OK)
|
||||||
|
{
|
||||||
|
FIXME("Query Interface IID_IDataObject failed!\n");
|
||||||
|
pSize->cx = pSize->cy = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
fmt.cfFormat = CF_BITMAP;
|
fmt.cfFormat = CF_BITMAP;
|
||||||
fmt.ptd = NULL;
|
fmt.ptd = NULL;
|
||||||
fmt.dwAspect = DVASPECT_CONTENT;
|
fmt.dwAspect = DVASPECT_CONTENT;
|
||||||
|
|
Loading…
Reference in New Issue