dxgi: Remove superfluous pointer casts.

Michael Stefaniuc mstefani at redhat.de
Sat Jan 10 17:15:40 CST 2009


---
 dlls/dxgi/dxgi_main.c |    2 +-
 dlls/dxgi/factory.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dxgi/dxgi_main.c b/dlls/dxgi/dxgi_main.c
index b72c04a..06086f7 100644
--- a/dlls/dxgi/dxgi_main.c
+++ b/dlls/dxgi/dxgi_main.c
@@ -315,7 +315,7 @@ HRESULT WINAPI DXGID3D10CreateDevice(HMODULE d3d10core, IDXGIFactory *factory, I
         goto fail;
     }
 
-    *device = (IUnknown *)dxgi_device;
+    *device = dxgi_device;
 
     return hr;
 
diff --git a/dlls/dxgi/factory.c b/dlls/dxgi/factory.c
index 03db096..19bc4cf 100644
--- a/dlls/dxgi/factory.c
+++ b/dlls/dxgi/factory.c
@@ -131,7 +131,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_factory_EnumAdapters(IWineDXGIFactory *ifa
         return DXGI_ERROR_NOT_FOUND;
     }
 
-    *adapter = (IDXGIAdapter *)This->adapters[adapter_idx];
+    *adapter = This->adapters[adapter_idx];
     IDXGIAdapter_AddRef(*adapter);
 
     TRACE("Returning adapter %p\n", *adapter);
-- 
1.6.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090111/1444ac5e/attachment-0001.pgp 


More information about the wine-patches mailing list