- Setup RectInRegion for internal use.
svn path=/trunk/; revision=51102
BOOL FASTCALL IntGdiPaintRgn(PDC, HRGN );
HRGN FASTCALL IntCreatePolyPolygonRgn(PPOINT, PULONG, INT, INT);
INT FASTCALL IntGdiOffsetRgn(PROSRGNDATA,INT,INT);
+BOOL FASTCALL IntRectInRegion(HRGN,LPRECTL);
INT FASTCALL IntGdiCombineRgn(PROSRGNDATA, PROSRGNDATA, PROSRGNDATA, INT);
INT FASTCALL REGION_Complexity(PROSRGNDATA);
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-/* $Id$ */
#include <win32k.h>
return hrgn;
}
+BOOL
+FASTCALL
+IntRectInRegion(
+ HRGN hRgn,
+ LPRECTL rc
+)
+{
+ PROSRGNDATA Rgn;
+ BOOL Ret;
+
+ if (!(Rgn = RGNOBJAPI_Lock(hRgn, NULL)))
+ {
+ return ERROR;
+ }
+
+ Ret = REGION_RectInRegion(Rgn, rc);
+ RGNOBJAPI_Unlock(Rgn);
+ return Ret;
+}
+
+
//
// NtGdi Exported Functions
//
LPRECTL unsaferc
)
{
- PROSRGNDATA Rgn;
RECTL rc = {0};
- BOOL Ret;
NTSTATUS Status = STATUS_SUCCESS;
- if (!(Rgn = RGNOBJAPI_Lock(hRgn, NULL)))
- {
- return ERROR;
- }
-
_SEH2_TRY
{
ProbeForRead(unsaferc, sizeof(RECT), 1);
if (!NT_SUCCESS(Status))
{
- RGNOBJAPI_Unlock(Rgn);
SetLastNtError(Status);
DPRINT1("NtGdiRectInRegion: bogus rc\n");
return ERROR;
}
- Ret = REGION_RectInRegion(Rgn, &rc);
- RGNOBJAPI_Unlock(Rgn);
- return Ret;
+ return IntRectInRegion(hRgn, &rc);
}
BOOL