Huw Davies : gdi32: Add back the extents test.
Alexandre Julliard
julliard at winehq.org
Sun Jul 10 08:57:09 CDT 2016
Module: wine
Branch: master
Commit: 622c01c5e1fb72bf4ddcc78ea90bc36ff7d540ae
URL: http://source.winehq.org/git/wine.git/?a=commit;h=622c01c5e1fb72bf4ddcc78ea90bc36ff7d540ae
Author: Huw Davies <huw at codeweavers.com>
Date: Fri Jul 8 15:57:36 2016 +0100
gdi32: Add back the extents test.
Spotted by Sebastian Lackner.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/gdi32/region.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/gdi32/region.c b/dlls/gdi32/region.c
index cea2dab..db21c02 100644
--- a/dlls/gdi32/region.c
+++ b/dlls/gdi32/region.c
@@ -1038,7 +1038,8 @@ BOOL WINAPI PtInRegion( HRGN hrgn, INT x, INT y )
if ((obj = GDI_GetObjPtr( hrgn, OBJ_REGION )))
{
- region_find_pt( obj, x, y, &ret );
+ if (obj->numRects > 0 && is_in_rect( &obj->extents, x, y ))
+ region_find_pt( obj, x, y, &ret );
GDI_ReleaseObj( hrgn );
}
return ret;
More information about the wine-cvs
mailing list