Skip to content
Snippets Groups Projects
Commit 015aae30 authored by eric pouech's avatar eric pouech Committed by Alexandre Julliard
Browse files

riched20: Don't crash when no OLE obj is present.


This was generating a lot of crashes in riched20 tests.

Signed-off-by: default avatarEric Pouech <epouech@codeweavers.com>
parent 7b947654
No related branches found
No related tags found
No related merge requests found
......@@ -5799,6 +5799,8 @@ void draw_ole( ME_Context *c, int x, int y, ME_Run *run, BOOL selected )
assert(run->nFlags & MERF_GRAPHICS);
assert(run->reobj);
if (!run->reobj->obj.poleobj) return;
if (SUCCEEDED(IOleObject_QueryInterface(run->reobj->obj.poleobj, &IID_IViewObject, (void**)&ivo)))
{
HRESULT hr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment