Nikolay Sivov : dwrite: Use correct return code on allocation failure.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 7 08:50:38 CST 2016
Module: wine
Branch: master
Commit: 27ca16c7c941e25443dd162935423b694785ed34
URL: http://source.winehq.org/git/wine.git/?a=commit;h=27ca16c7c941e25443dd162935423b694785ed34
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Mar 7 17:09:55 2016 +0300
dwrite: Use correct return code on allocation failure.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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;
More information about the wine-cvs
mailing list