Nikolay Sivov : d2d1: Check the context error state on entering d2d_device_context_DrawGlyphRun ().
Alexandre Julliard
julliard at winehq.org
Mon Oct 8 15:44:07 CDT 2018
Module: wine
Branch: master
Commit: cc4b28a99df649d2885c14fd28c2ad2f0c2abdad
URL: https://source.winehq.org/git/wine.git/?a=commit;h=cc4b28a99df649d2885c14fd28c2ad2f0c2abdad
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Oct 8 22:13:42 2018 +0330
d2d1: Check the context error state on entering d2d_device_context_DrawGlyphRun().
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d2d1/device.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/d2d1/device.c b/dlls/d2d1/device.c
index 1e42051..ff5caac 100644
--- a/dlls/d2d1/device.c
+++ b/dlls/d2d1/device.c
@@ -1355,6 +1355,9 @@ static void STDMETHODCALLTYPE d2d_device_context_DrawGlyphRun(ID2D1DeviceContext
TRACE("iface %p, baseline_origin %s, glyph_run %p, brush %p, measuring_mode %#x.\n",
iface, debug_d2d_point_2f(&baseline_origin), glyph_run, brush, measuring_mode);
+ if (FAILED(context->error.code))
+ return;
+
rendering_params = context->text_rendering_params ? context->text_rendering_params
: context->default_text_rendering_params;
More information about the wine-cvs
mailing list