From: Michael Stefaniuc mstefani@winehq.org
--- dlls/d2d1/brush.c | 2 +- dlls/d2d1/device.c | 2 +- dlls/d2d1/tests/d2d1.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/d2d1/brush.c b/dlls/d2d1/brush.c index 98aa889aa5f..75cd72b5b9f 100644 --- a/dlls/d2d1/brush.c +++ b/dlls/d2d1/brush.c @@ -1258,7 +1258,7 @@ static void STDMETHODCALLTYPE d2d_image_brush_GetImage(ID2D1ImageBrush *iface, I
TRACE("iface %p, image %p.\n", iface, image);
- if ((*image = (ID2D1Image *)brush->u.image.image)) + if ((*image = brush->u.image.image)) ID2D1Image_AddRef(*image); }
diff --git a/dlls/d2d1/device.c b/dlls/d2d1/device.c index 89d17149ca4..93fcecf72ba 100644 --- a/dlls/d2d1/device.c +++ b/dlls/d2d1/device.c @@ -2338,7 +2338,7 @@ static void STDMETHODCALLTYPE d2d_device_context_GetDevice(ID2D1DeviceContext1 *
TRACE("iface %p, device %p.\n", iface, device);
- *device = (ID2D1Device *)context->device; + *device = context->device; ID2D1Device_AddRef(*device); }
diff --git a/dlls/d2d1/tests/d2d1.c b/dlls/d2d1/tests/d2d1.c index 93a8c6b43b8..aedae45ca98 100644 --- a/dlls/d2d1/tests/d2d1.c +++ b/dlls/d2d1/tests/d2d1.c @@ -9786,7 +9786,7 @@ static void test_command_list(BOOL d3d11) stroke_desc.dashStyle = D2D1_DASH_STYLE_DOT; stroke_desc.dashOffset = -1.0f;
- hr = ID2D1Factory_CreateStrokeStyle((ID2D1Factory *)ctx.factory, &stroke_desc, NULL, 0, &stroke_style); + hr = ID2D1Factory_CreateStrokeStyle(ctx.factory, &stroke_desc, NULL, 0, &stroke_style); ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
set_color(&color, 0.0f, 0.0f, 0.0f, 0.0f);