[PATCH] d2d1/tests: Remove superfluous cast to self

Michael Stefaniuc mstefani at winehq.org
Thu Jan 28 16:29:38 CST 2021


Signed-off-by: Michael Stefaniuc <mstefani 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);
 
-- 
2.26.2




More information about the wine-devel mailing list