mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 05:37:44 +00:00
remove NtGdiCreateEllipticRegionIndirect from win32k
svn path=/trunk/; revision=27859
This commit is contained in:
parent
1a455c9c06
commit
e71ca90a57
|
@ -2027,35 +2027,6 @@ NtGdiCreateEllipticRgn(INT Left,
|
|||
Right - Left, Bottom - Top);
|
||||
}
|
||||
|
||||
HRGN
|
||||
STDCALL
|
||||
NtGdiCreateEllipticRgnIndirect(CONST PRECT Rect)
|
||||
{
|
||||
RECT SafeRect = {0};
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
|
||||
_SEH_TRY
|
||||
{
|
||||
ProbeForRead(Rect,
|
||||
sizeof(RECT),
|
||||
1);
|
||||
SafeRect = *Rect;
|
||||
}
|
||||
_SEH_HANDLE
|
||||
{
|
||||
Status = _SEH_GetExceptionCode();
|
||||
}
|
||||
_SEH_END;
|
||||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return NtGdiCreateRoundRectRgn(SafeRect.left, SafeRect.top, SafeRect.right, SafeRect.bottom,
|
||||
SafeRect.right - SafeRect.left, SafeRect.bottom - SafeRect.top);
|
||||
}
|
||||
|
||||
HRGN STDCALL
|
||||
NtGdiCreateRectRgn(INT LeftRect, INT TopRect, INT RightRect, INT BottomRect)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue