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

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2016-02-09 09:16:49 +01:00 committed by Alexandre Julliard
parent 232dc29ff8
commit 79ada31714
1 changed files with 2 additions and 1 deletions

View File

@ -469,7 +469,8 @@ static int subtract_overlapping( struct region *pReg,
rect->bottom = bottom;
}
r1++;
left = r1->left;
if (r1 != r1End)
left = r1->left;
}
}