[PATCH 2/5] d3dx9/tests: Initialize an input variable.

Matteo Bruni mbruni at codeweavers.com
Fri Feb 18 04:14:26 CST 2022


Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
 dlls/d3dx9_36/tests/math.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c
index 2ed9131d788..501895665f7 100644
--- a/dlls/d3dx9_36/tests/math.c
+++ b/dlls/d3dx9_36/tests/math.c
@@ -3309,6 +3309,7 @@ static void test_D3DXFloat_Array(void)
     };
 
     /* exception on NULL out or in parameter */
+    single.f = 0.0f;
     out = D3DXFloat32To16Array(&half, &single.f, 0);
     ok(out == &half, "Got %p, expected %p.\n", out, &half);
 
-- 
2.34.1




More information about the wine-devel mailing list