gdi32: Add missing check for empty visible rects in the non-stretching case.

This commit is contained in:
Alexandre Julliard 2011-12-08 10:32:26 +01:00
parent e18d99da74
commit 72fae39ce0
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ BOOL intersect_vis_rectangles( struct bitblt_coords *dst, struct bitblt_coords *
if ((src->width == dst->width) && (src->height == dst->height)) /* no stretching */ if ((src->width == dst->width) && (src->height == dst->height)) /* no stretching */
{ {
offset_rect( &src->visrect, dst->x - src->x, dst->y - src->y ); offset_rect( &src->visrect, dst->x - src->x, dst->y - src->y );
intersect_rect( &rect, &src->visrect, &dst->visrect ); if (!intersect_rect( &rect, &src->visrect, &dst->visrect )) return FALSE;
src->visrect = dst->visrect = rect; src->visrect = dst->visrect = rect;
offset_rect( &src->visrect, src->x - dst->x, src->y - dst->y ); offset_rect( &src->visrect, src->x - dst->x, src->y - dst->y );
} }