fixed some uninitialized variables warnings

svn path=/trunk/; revision=17117
This commit is contained in:
Thomas Bluemel 2005-08-06 20:23:08 +00:00
parent e651def55f
commit 958fe98d1d
3 changed files with 10 additions and 6 deletions

View file

@ -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);

View file

@ -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

View file

@ -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
{ {