[PATCH] dwrite: Use correct return code on allocation failure
Nikolay Sivov
nsivov at codeweavers.com
Mon Mar 7 08:09:55 CST 2016
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/dwrite/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dwrite/main.c b/dlls/dwrite/main.c
index 4e6bec7..e081e11 100644
--- a/dlls/dwrite/main.c
+++ b/dlls/dwrite/main.c
@@ -894,7 +894,7 @@ static HRESULT WINAPI dwritefactory_CreateFontFace(IDWriteFactory2 *iface,
cached = heap_alloc(sizeof(*cached));
if (!cached) {
IDWriteFontFace3_Release(face);
- return hr;
+ return E_OUTOFMEMORY;
}
cached->fontface = (IDWriteFontFace*)face;
--
2.7.0
More information about the wine-patches
mailing list