diff --git a/src/hb-uniscribe.cc b/src/hb-uniscribe.cc index 01be0cc846b5fcf41af540d8f5fd3622946f5897..86bb84f93b3d79239cdff1ce3fedece86396dca0 100644 --- a/src/hb-uniscribe.cc +++ b/src/hb-uniscribe.cc @@ -919,7 +919,7 @@ retry: if (unlikely (items[i].a.fNoGlyphIndex)) FAIL ("ScriptShapeOpenType() set fNoGlyphIndex"); - if (unlikely (hr == E_OUTOFMEMORY)) + if (unlikely (hr == E_OUTOFMEMORY || hr == E_NOT_SUFFICIENT_BUFFER)) { if (unlikely (!buffer->ensure (buffer->allocated * 2))) FAIL ("Buffer resize failed");