Michael Stefaniuc : d2d1/tests: Remove superfluous cast to self.

Alexandre Julliard julliard at winehq.org
Fri Jan 29 15:10:22 CST 2021


Module: wine
Branch: master
Commit: 3e1bb7f727fed3d6db597b4900d113474d5f441b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3e1bb7f727fed3d6db597b4900d113474d5f441b

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Jan 28 23:29:38 2021 +0100

d2d1/tests: Remove superfluous cast to self.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d2d1/tests/d2d1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d2d1/tests/d2d1.c b/dlls/d2d1/tests/d2d1.c
index 3e7df715dda..7c1ff9dc197 100644
--- a/dlls/d2d1/tests/d2d1.c
+++ b/dlls/d2d1/tests/d2d1.c
@@ -412,7 +412,7 @@ static void get_d3d11_surface_readback(IDXGISurface *surface, struct resource_re
     ID3D11Resource_Release(src_resource);
     ID3D11Device_Release(device);
 
-    hr = ID3D11DeviceContext_Map(context, (ID3D11Resource *)rb->u.d3d11_resource, 0, D3D11_MAP_READ, 0, &map_desc);
+    hr = ID3D11DeviceContext_Map(context, rb->u.d3d11_resource, 0, D3D11_MAP_READ, 0, &map_desc);
     ok(SUCCEEDED(hr), "Failed to map texture, hr %#x.\n", hr);
     ID3D11DeviceContext_Release(context);
 




More information about the wine-cvs mailing list