Alex Henrie : d3d10/tests: Increase size of array expected_i_a in test_scalar_array_methods (cppcheck).

Alexandre Julliard julliard at winehq.org
Mon Jan 10 15:59:11 CST 2022


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

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Wed Dec 22 01:52:04 2021 -0700

d3d10/tests: Increase size of array expected_i_a in test_scalar_array_methods (cppcheck).

This array is accessed at index 5 on line 5138.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d10/tests/effect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3d10/tests/effect.c b/dlls/d3d10/tests/effect.c
index ddc24d66e20..51675bcdab3 100644
--- a/dlls/d3d10/tests/effect.c
+++ b/dlls/d3d10/tests/effect.c
@@ -4974,7 +4974,7 @@ static void test_scalar_array_methods(ID3D10EffectScalarVariable *var, D3D10_SHA
         const char *name)
 {
     float set_f[2], ret_f[2], expected_f;
-    int set_i[6], ret_i[6], expected_i, expected_i_a[2];
+    int set_i[6], ret_i[6], expected_i, expected_i_a[6];
     BOOL set_b[2], ret_b[2], expected_b, expected_b_a[6];
     unsigned int i;
     HRESULT hr;




More information about the wine-cvs mailing list