Commit 27ca16c7 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Use correct return code on allocation failure.

parent c6d6dcee
...@@ -894,7 +894,7 @@ static HRESULT WINAPI dwritefactory_CreateFontFace(IDWriteFactory2 *iface, ...@@ -894,7 +894,7 @@ static HRESULT WINAPI dwritefactory_CreateFontFace(IDWriteFactory2 *iface,
cached = heap_alloc(sizeof(*cached)); cached = heap_alloc(sizeof(*cached));
if (!cached) { if (!cached) {
IDWriteFontFace3_Release(face); IDWriteFontFace3_Release(face);
return hr; return E_OUTOFMEMORY;
} }
cached->fontface = (IDWriteFontFace*)face; cached->fontface = (IDWriteFontFace*)face;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment