Rico Schüller : d3dcompiler: Remove type cast in D3DCreateBlob().

Alexandre Julliard julliard at winehq.org
Mon Apr 4 10:10:56 CDT 2011


Module: wine
Branch: master
Commit: c4530c56d16d3de6eb663d33f417b577b056dfc0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c4530c56d16d3de6eb663d33f417b577b056dfc0

Author: Rico Schüller <kgbricola at web.de>
Date:   Fri Apr  1 15:00:16 2011 +0200

d3dcompiler: Remove type cast in D3DCreateBlob().

---

 dlls/d3dcompiler_43/blob.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3dcompiler_43/blob.c b/dlls/d3dcompiler_43/blob.c
index 4a5ff79..86fb791 100644
--- a/dlls/d3dcompiler_43/blob.c
+++ b/dlls/d3dcompiler_43/blob.c
@@ -161,9 +161,9 @@ HRESULT WINAPI D3DCreateBlob(SIZE_T data_size, ID3DBlob **blob)
         return hr;
     }
 
-    *blob = (ID3DBlob *)object;
+    *blob = &object->ID3DBlob_iface;
 
-    TRACE("Created ID3DBlob %p\n", object);
+    TRACE("Created ID3DBlob %p\n", *blob);
 
     return S_OK;
 }




More information about the wine-cvs mailing list