gdi32: Add back the extents test.
Huw Davies
huw at codeweavers.com
Fri Jul 8 09:57:36 CDT 2016
Spotted by Sebastian Lackner.
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
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;
--
2.7.4
More information about the wine-patches
mailing list