[PATCH 6/6] d3dx9_36/tests: fixed order of parameters

Eric Pouech eric.pouech at gmail.com
Tue Sep 28 11:50:03 CDT 2021


(spotted by GCC11)

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>

---
 dlls/d3dx9_36/mesh.c       |    2 +-
 dlls/d3dx9_36/tests/mesh.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c
index 8f7c926c32a..48abb7ede41 100644
--- a/dlls/d3dx9_36/mesh.c
+++ b/dlls/d3dx9_36/mesh.c
@@ -5508,7 +5508,7 @@ static inline BOOL is_direction_similar(D3DXVECTOR2 *dir1, D3DXVECTOR2 *dir2, fl
 
 static inline D3DXVECTOR2 *unit_vec2(D3DXVECTOR2 *dir, const D3DXVECTOR2 *pt1, const D3DXVECTOR2 *pt2)
 {
-    return D3DXVec2Normalize(D3DXVec2Subtract(dir, pt2, pt1), dir);
+    return D3DXVec2Normalize(dir, D3DXVec2Subtract(dir, pt2, pt1));
 }
 
 struct cos_table
diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c
index a583a42d30f..8c98f790d1b 100644
--- a/dlls/d3dx9_36/tests/mesh.c
+++ b/dlls/d3dx9_36/tests/mesh.c
@@ -3611,7 +3611,7 @@ static inline BOOL is_direction_similar(D3DXVECTOR2 *dir1, D3DXVECTOR2 *dir2, fl
 
 static inline D3DXVECTOR2 *unit_vec2(D3DXVECTOR2 *dir, const D3DXVECTOR2 *pt1, const D3DXVECTOR2 *pt2)
 {
-    return D3DXVec2Normalize(D3DXVec2Subtract(dir, pt2, pt1), dir);
+    return D3DXVec2Normalize(dir, D3DXVec2Subtract(dir, pt2, pt1));
 }
 
 static BOOL attempt_line_merge(struct outline *outline,




More information about the wine-devel mailing list