Commit 79ada317 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

server: Fix an invalid memory access in subtract_overlapping (Valgrind).

parent 232dc29f
...@@ -469,7 +469,8 @@ static int subtract_overlapping( struct region *pReg, ...@@ -469,7 +469,8 @@ static int subtract_overlapping( struct region *pReg,
rect->bottom = bottom; rect->bottom = bottom;
} }
r1++; r1++;
left = r1->left; if (r1 != r1End)
left = r1->left;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment