[PATCH] d3dx9_36: use correct loop index (Coverity)

Marcus Meissner marcus at jet.franken.de
Mon Apr 29 15:11:58 CDT 2013


Introduced in apr 2011 by e798d001.

Exposed to Coverity however only by:
9d18b3de (Christian Costa   2013-04-25 22:24:55 +0200

CID 1011534 Copy-paste error

Ciao, Marcus
---
 dlls/d3dx9_36/effect.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c
index 3295020..c4afbe5 100644
--- a/dlls/d3dx9_36/effect.c
+++ b/dlls/d3dx9_36/effect.c
@@ -560,7 +560,7 @@ static struct d3dx_parameter *get_valid_parameter(struct ID3DXBaseEffectImpl *ba
 
             for (m = 0; m < pass->annotation_count; ++m)
             {
-                if (pass->annotation_handles[i] == parameter)
+                if (pass->annotation_handles[m] == parameter)
                 {
                     return get_parameter_struct(parameter);
                 }
-- 
1.7.10.4




More information about the wine-patches mailing list