[PATCH 1/5] d3dx9_36: cast D3DPARAMETER_TYPE * to DWORD *.

Stefan Dösinger stefan at codeweavers.com
Fri Jan 3 07:17:16 CST 2014


Msvc complains about this. Please ignore this patch if this behavior is
considered compiler silliness.
---
 dlls/d3dx9_36/effect.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c
index 547e810..ac13c72 100644
--- a/dlls/d3dx9_36/effect.c
+++ b/dlls/d3dx9_36/effect.c
@@ -4398,10 +4398,10 @@ static HRESULT d3dx9_parse_effect_typedef(struct d3dx_parameter *param, const ch
 
     if (!parent)
     {
-        read_dword(ptr, &param->type);
+        read_dword(ptr, (DWORD *)&param->type);
         TRACE("Type: %s\n", debug_d3dxparameter_type(param->type));
 
-        read_dword(ptr, &param->class);
+        read_dword(ptr, (DWORD *)&param->class);
         TRACE("Class: %s\n", debug_d3dxparameter_class(param->class));
 
         read_dword(ptr, &offset);
-- 
1.8.3.4 (Apple Git-47)




More information about the wine-patches mailing list