[PATCH] glu32: avoid assert side effect (Coverity)

Marcus Meissner marcus at jet.franken.de
Sat Apr 29 12:34:09 CDT 2017


CID 401313

Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
---
 dlls/glu32/sweep.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/glu32/sweep.c b/dlls/glu32/sweep.c
index a909e2be33..1248e9f050 100644
--- a/dlls/glu32/sweep.c
+++ b/dlls/glu32/sweep.c
@@ -1287,7 +1287,8 @@ static void DoneEdgeDict( GLUtesselator *tess )
      */
     if( ! reg->sentinel ) {
       assert( reg->fixUpperEdge );
-      assert( ++fixedEdges == 1 );
+      ++fixedEdges;
+      assert( fixedEdges == 1 );
     }
     assert( reg->windingNumber == 0 );
     DeleteRegion( tess, reg );
-- 
2.12.2




More information about the wine-patches mailing list