[PATCH 1/4] d3dx9_36/tests: Initialize some test values.

Stefan Dösinger stefan at codeweavers.com
Mon Mar 31 04:44:54 CDT 2014


Those values are passed without initialization to SetBool, SetFloat and
SetInt. The test never verifies anything other than the set and get
calls succeeding. Msvc warns about the uninitialized values, gcc does
not for some reason.
---
 dlls/d3dx9_36/tests/effect.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/d3dx9_36/tests/effect.c b/dlls/d3dx9_36/tests/effect.c
index 44f931c..482f064 100644
--- a/dlls/d3dx9_36/tests/effect.c
+++ b/dlls/d3dx9_36/tests/effect.c
@@ -1683,9 +1683,9 @@ static void test_effect_parameter_value(IDirect3DDevice9 *device)
             UINT res_value_offset = res[k].value_offset;
             D3DXHANDLE parameter;
             D3DXPARAMETER_DESC pdesc;
-            BOOL bvalue;
-            INT ivalue;
-            FLOAT fvalue;
+            BOOL bvalue = TRUE;
+            INT ivalue = 42;
+            FLOAT fvalue = 2.71828f;
             DWORD input_value[EFFECT_PARAMETER_VALUE_ARRAY_SIZE];
             DWORD expected_value[EFFECT_PARAMETER_VALUE_ARRAY_SIZE];
             UINT l, n, m, element;
-- 
1.8.3.2




More information about the wine-patches mailing list