mirror of
https://github.com/reactos/reactos.git
synced 2025-01-15 18:43:27 +00:00
fixed some uninitialized variables warnings
svn path=/trunk/; revision=17117
This commit is contained in:
parent
e651def55f
commit
958fe98d1d
3 changed files with 10 additions and 6 deletions
|
@ -925,7 +925,7 @@ NtGdiPolyPolygon(HDC hDC,
|
||||||
DC *dc;
|
DC *dc;
|
||||||
LPPOINT Safept;
|
LPPOINT Safept;
|
||||||
LPINT SafePolyPoints;
|
LPINT SafePolyPoints;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
BOOL Ret;
|
BOOL Ret;
|
||||||
|
|
||||||
dc = DC_LockDc(hDC);
|
dc = DC_LockDc(hDC);
|
||||||
|
|
|
@ -70,7 +70,7 @@ IntGdiIsEmptyRect(const RECT* Rect)
|
||||||
BOOL STDCALL
|
BOOL STDCALL
|
||||||
NtGdiIsEmptyRect(const RECT* UnsafeRect)
|
NtGdiIsEmptyRect(const RECT* UnsafeRect)
|
||||||
{
|
{
|
||||||
RECT Rect;
|
RECT Rect = {0};
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
|
|
||||||
_SEH_TRY
|
_SEH_TRY
|
||||||
|
|
|
@ -2028,7 +2028,7 @@ HRGN
|
||||||
STDCALL
|
STDCALL
|
||||||
NtGdiCreateEllipticRgnIndirect(CONST PRECT Rect)
|
NtGdiCreateEllipticRgnIndirect(CONST PRECT Rect)
|
||||||
{
|
{
|
||||||
RECT SafeRect;
|
RECT SafeRect = {0};
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
|
|
||||||
_SEH_TRY
|
_SEH_TRY
|
||||||
|
@ -2073,7 +2073,7 @@ NtGdiCreateRectRgn(INT LeftRect, INT TopRect, INT RightRect, INT BottomRect)
|
||||||
HRGN STDCALL
|
HRGN STDCALL
|
||||||
NtGdiCreateRectRgnIndirect(CONST PRECT rc)
|
NtGdiCreateRectRgnIndirect(CONST PRECT rc)
|
||||||
{
|
{
|
||||||
RECT SafeRc;
|
RECT SafeRc = {0};
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
|
|
||||||
_SEH_TRY
|
_SEH_TRY
|
||||||
|
@ -3510,8 +3510,9 @@ NtGdiCreatePolyPolygonRgn(CONST PPOINT pt,
|
||||||
ProbeForRead(PolyCounts,
|
ProbeForRead(PolyCounts,
|
||||||
Count * sizeof(INT),
|
Count * sizeof(INT),
|
||||||
1);
|
1);
|
||||||
|
/* just probe one point for now, we don't know the length of the array yet */
|
||||||
ProbeForRead(pt,
|
ProbeForRead(pt,
|
||||||
nPoints * sizeof(POINT),
|
sizeof(POINT),
|
||||||
1);
|
1);
|
||||||
}
|
}
|
||||||
_SEH_HANDLE
|
_SEH_HANDLE
|
||||||
|
@ -3593,10 +3594,13 @@ NtGdiCreatePolyPolygonRgn(CONST PPOINT pt,
|
||||||
|
|
||||||
_SEH_TRY
|
_SEH_TRY
|
||||||
{
|
{
|
||||||
|
ProbeForRead(pt,
|
||||||
|
nPoints * sizeof(POINT),
|
||||||
|
1);
|
||||||
/* pointers were already probed! */
|
/* pointers were already probed! */
|
||||||
RtlCopyMemory(Safept,
|
RtlCopyMemory(Safept,
|
||||||
pt,
|
pt,
|
||||||
Count * sizeof(POINT));
|
nPoints * sizeof(POINT));
|
||||||
}
|
}
|
||||||
_SEH_HANDLE
|
_SEH_HANDLE
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue