Author: greatlrd
Date: Mon Apr 2 14:32:21 2007
New Revision: 26247
URL:
http://svn.reactos.org/svn/reactos?rev=26247&view=rev
Log:
some gcc 3.4.5 fixed; but not all we need
Modified:
trunk/reactos/subsystems/win32/win32k/ntddraw/dd.c
trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
trunk/reactos/subsystems/win32/win32k/ntuser/class.c
trunk/reactos/subsystems/win32/win32k/objects/brush.c
trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c
trunk/reactos/subsystems/win32/win32k/objects/coord.c
trunk/reactos/subsystems/win32/win32k/objects/dc.c
trunk/reactos/subsystems/win32/win32k/objects/dibobj.c
trunk/reactos/subsystems/win32/win32k/objects/fillshap.c
trunk/reactos/subsystems/win32/win32k/objects/line.c
trunk/reactos/subsystems/win32/win32k/objects/print.c
trunk/reactos/subsystems/win32/win32k/objects/rect.c
trunk/reactos/subsystems/win32/win32k/objects/region.c
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/dd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/dd.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/dd.c Mon Apr 2 14:32:21 2007
@@ -40,11 +40,11 @@
HANDLE *puhSurface
)
{
- INT i;
+ INT i = 0;
DWORD ddRVal = DDHAL_DRIVER_NOTHANDLED;
NTSTATUS Status = FALSE;
- PDD_DIRECTDRAW pDirectDraw;
- PDD_SURFACE phsurface;
+ PDD_DIRECTDRAW pDirectDraw = NULL;
+ PDD_SURFACE phsurface = NULL;
PDD_SURFACE_LOCAL pLocal;
PDD_SURFACE_MORE pMore;
@@ -53,7 +53,7 @@
DD_CREATESURFACEDATA CreateSurfaceData;
/* FIXME alloc so mayne we need */
- PHANDLE *myhSurface;
+ PHANDLE *myhSurface = NULL;
/* GCC4 warnns on value are unisitaed,
but they are initated in seh
@@ -508,7 +508,7 @@
{
DWORD ddRVal = DDHAL_DRIVER_NOTHANDLED;
DD_GETSCANLINEDATA GetScanLineData;
- PDD_DIRECTDRAW pDirectDraw;
+ PDD_DIRECTDRAW pDirectDraw = NULL;
NTSTATUS Status = FALSE;
DPRINT1("NtGdiDdGetScanLine\n");
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c Mon Apr 2 14:32:21 2007
@@ -292,7 +292,7 @@
DWORD *puFourCC
)
{
- PDD_DIRECTDRAW pDirectDraw;
+ PDD_DIRECTDRAW pDirectDraw = NULL;
NTSTATUS Status = FALSE;
BOOL Ret=FALSE;
@@ -549,7 +549,7 @@
{
BOOL Ret=FALSE;
NTSTATUS Status = FALSE;
- PDD_DIRECTDRAW pDirectDraw;
+ PDD_DIRECTDRAW pDirectDraw = NULL;
if (hDirectDrawLocal == NULL)
{
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/class.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/class.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/class.c Mon Apr 2 14:32:21 2007
@@ -1137,7 +1137,7 @@
IN DWORD dwFlags)
{
PW32THREADINFO ti;
- PW32PROCESSINFO pi;
+ PW32PROCESSINFO pi = NULL;
PWINDOWCLASS Class;
RTL_ATOM ClassAtom;
RTL_ATOM Ret = (RTL_ATOM)0;
@@ -1484,7 +1484,7 @@
if (MenuName->Length != 0)
{
ANSI_STRING AnsiString;
- PWSTR strBufW;
+ PWSTR strBufW = NULL;
AnsiString.MaximumLength = RtlUnicodeStringToAnsiSize(MenuName);
Modified: trunk/reactos/subsystems/win32/win32k/objects/brush.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/brush.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/brush.c Mon Apr 2 14:32:21 2007
@@ -628,7 +628,7 @@
IN BOOL bPen,
IN PVOID PackedDIB)
{
- BITMAPINFO *SafeBitmapInfoAndData;
+ BITMAPINFO *SafeBitmapInfoAndData = NULL;
NTSTATUS Status = STATUS_SUCCESS;
HBRUSH hBrush;
Modified: trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c Mon Apr 2 14:32:21 2007
@@ -203,7 +203,7 @@
int STDCALL NtGdiGetClipBox(HDC hDC,
LPRECT rc)
{
- int Ret;
+ int Ret = FALSE;
NTSTATUS Status = STATUS_SUCCESS;
RECT Saferect;
Modified: trunk/reactos/subsystems/win32/win32k/objects/coord.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/coord.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/coord.c Mon Apr 2 14:32:21 2007
@@ -82,7 +82,7 @@
XFORM xformTemp;
XFORM xform1 = {0}, xform2 = {0};
NTSTATUS Status = STATUS_SUCCESS;
- BOOL Ret;
+ BOOL Ret = FALSE;
_SEH_TRY
{
@@ -170,10 +170,10 @@
LPPOINT UnsafePoints,
int Count)
{
- PDC dc;
+ PDC dc = NULL;
NTSTATUS Status = STATUS_SUCCESS;
- LPPOINT Points;
- ULONG Size;
+ LPPOINT Points = NULL;
+ ULONG Size = 0;
dc = DC_LockDc(hDC);
if (!dc)
@@ -320,7 +320,7 @@
NtGdiGetWorldTransform(HDC hDC,
LPXFORM XForm)
{
- PDC dc;
+ PDC dc = NULL;
NTSTATUS Status = STATUS_SUCCESS;
dc = DC_LockDc ( hDC );
@@ -393,10 +393,10 @@
BOOL STDCALL
NtGdiLPtoDP ( HDC hDC, LPPOINT UnsafePoints, INT Count )
{
- PDC dc;
+ PDC dc = NULL;
NTSTATUS Status = STATUS_SUCCESS;
- LPPOINT Points;
- ULONG Size;
+ LPPOINT Points = NULL;
+ ULONG Size = 0;
dc = DC_LockDc(hDC);
if (!dc)
@@ -479,7 +479,7 @@
CONST LPXFORM UnsafeXForm,
DWORD Mode)
{
- PDC dc;
+ PDC dc = NULL;
XFORM SafeXForm;
BOOL Ret = FALSE;
@@ -520,7 +520,7 @@
int YOffset,
LPPOINT UnsafePoint)
{
- PDC dc;
+ PDC dc = NULL;
NTSTATUS Status = STATUS_SUCCESS;
dc = DC_LockDc ( hDC );
@@ -569,7 +569,7 @@
int YOffset,
LPPOINT Point)
{
- PDC dc;
+ PDC dc = NULL;
dc = DC_LockDc(hDC);
if (!dc)
@@ -758,7 +758,7 @@
int YExtent,
LPSIZE Size)
{
- PDC dc;
+ PDC dc = NULL;
dc = DC_LockDc(hDC);
if ( !dc )
@@ -830,7 +830,7 @@
int Y,
LPPOINT Point)
{
- PDC dc;
+ PDC dc = NULL;
dc = DC_LockDc(hDC);
if (!dc)
@@ -881,7 +881,7 @@
int YExtent,
LPSIZE Size)
{
- PDC dc;
+ PDC dc = NULL;
dc = DC_LockDc(hDC);
if (!dc)
@@ -944,7 +944,7 @@
int Y,
LPPOINT Point)
{
- PDC dc;
+ PDC dc = NULL;
dc = DC_LockDc(hDC);
if (!dc)
@@ -993,7 +993,7 @@
NtGdiSetWorldTransform(HDC hDC,
CONST LPXFORM XForm)
{
- PDC dc;
+ PDC dc = NULL;
NTSTATUS Status = STATUS_SUCCESS;
dc = DC_LockDc (hDC);
Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dc.c Mon Apr 2 14:32:21 2007
@@ -1249,8 +1249,8 @@
BOOL STDCALL
NtGdiGetDCOrgEx(HDC hDC, LPPOINT Point)
{
- BOOL Ret;
- DC *dc;
+ BOOL Ret = FALSE;
+ DC *dc = NULL;
POINT SafePoint;
NTSTATUS Status = STATUS_SUCCESS;
@@ -1812,7 +1812,7 @@
NtGdiGetObject(HANDLE handle, INT count, LPVOID buffer)
{
INT Ret = 0;
- LPVOID SafeBuf;
+ LPVOID SafeBuf = NULL;
NTSTATUS Status = STATUS_SUCCESS;
INT RetCount = 0;
Modified: trunk/reactos/subsystems/win32/win32k/objects/dibobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dibobj.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dibobj.c Mon Apr 2 14:32:21 2007
@@ -27,9 +27,9 @@
UINT STDCALL
NtGdiSetDIBColorTable(HDC hDC, UINT StartIndex, UINT Entries, CONST RGBQUAD *Colors)
{
- PDC dc;
- PBITMAPOBJ BitmapObj;
- PPALGDI PalGDI;
+ PDC dc = NULL;
+ PBITMAPOBJ BitmapObj = NULL;
+ PPALGDI PalGDI = NULL;
UINT Index;
if (!(dc = DC_LockDc(hDC))) return 0;
@@ -92,9 +92,9 @@
UINT STDCALL
NtGdiGetDIBColorTable(HDC hDC, UINT StartIndex, UINT Entries, RGBQUAD *Colors)
{
- PDC dc;
- PBITMAPOBJ BitmapObj;
- PPALGDI PalGDI;
+ PDC dc = NULL;
+ PBITMAPOBJ BitmapObj = NULL;
+ PPALGDI PalGDI = NULL;
UINT Index;
if (!(dc = DC_LockDc(hDC))) return 0;
Modified: trunk/reactos/subsystems/win32/win32k/objects/fillshap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/fillshap.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/fillshap.c Mon Apr 2 14:32:21 2007
@@ -827,8 +827,8 @@
CONST PPOINT UnsafePoints,
int Count)
{
- DC *dc;
- LPPOINT Safept;
+ DC *dc = NULL;
+ LPPOINT Safept = NULL;
NTSTATUS Status = STATUS_SUCCESS;
BOOL Ret = FALSE;
@@ -906,9 +906,9 @@
CONST LPINT PolyCounts,
int Count)
{
- DC *dc;
- LPPOINT Safept;
- LPINT SafePolyPoints;
+ DC *dc = NULL;
+ LPPOINT Safept = NULL;
+ LPINT SafePolyPoints = NULL;
NTSTATUS Status = STATUS_SUCCESS;
BOOL Ret;
@@ -1559,11 +1559,11 @@
ULONG uMesh,
ULONG ulMode)
{
- DC *dc;
+ DC *dc = NULL;
BOOL Ret;
- PTRIVERTEX SafeVertex;
- PVOID SafeMesh;
- ULONG SizeMesh;
+ PTRIVERTEX SafeVertex = NULL;
+ PVOID SafeMesh = NULL;
+ ULONG SizeMesh = 0;
NTSTATUS Status = STATUS_SUCCESS;
dc = DC_LockDc(hdc);
Modified: trunk/reactos/subsystems/win32/win32k/objects/line.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/line.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/line.c Mon Apr 2 14:32:21 2007
@@ -501,7 +501,7 @@
int Y,
LPPOINT Point)
{
- DC *dc;
+ DC *dc = NULL;
POINT SafePoint;
NTSTATUS Status = STATUS_SUCCESS;
BOOL Ret;
@@ -554,8 +554,8 @@
CONST LPPOINT pt,
DWORD Count)
{
- DC *dc;
- LPPOINT Safept;
+ DC *dc = NULL;
+ LPPOINT Safept = NULL;
NTSTATUS Status = STATUS_SUCCESS;
BOOL Ret;
@@ -642,8 +642,8 @@
CONST LPPOINT pt,
DWORD Count)
{
- DC *dc;
- LPPOINT Safept;
+ DC *dc = NULL;
+ LPPOINT Safept = NULL;
NTSTATUS Status = STATUS_SUCCESS;
BOOL Ret;
@@ -732,7 +732,7 @@
IN LPBYTE lpbTypes,
IN ULONG cCount)
{
- PDC dc;
+ PDC dc = NULL;
BOOL result = FALSE;
POINT lastmove;
unsigned int i;
@@ -806,8 +806,8 @@
CONST LPPOINT pt,
int Count)
{
- DC *dc;
- LPPOINT Safept;
+ DC *dc = NULL;
+ LPPOINT Safept = NULL;
NTSTATUS Status = STATUS_SUCCESS;
BOOL Ret;
@@ -894,8 +894,8 @@
CONST LPPOINT pt,
DWORD Count)
{
- DC *dc;
- LPPOINT Safept;
+ DC *dc = NULL;
+ LPPOINT Safept = NULL;
NTSTATUS Status = STATUS_SUCCESS;
BOOL Ret;
@@ -983,9 +983,9 @@
CONST LPDWORD PolyPoints,
DWORD Count)
{
- DC *dc;
- LPPOINT Safept;
- LPDWORD SafePolyPoints;
+ DC *dc = NULL;
+ LPPOINT Safept = NULL;
+ LPDWORD SafePolyPoints = NULL;
NTSTATUS Status = STATUS_SUCCESS;
BOOL Ret;
Modified: trunk/reactos/subsystems/win32/win32k/objects/print.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/print.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/print.c Mon Apr 2 14:32:21 2007
@@ -160,7 +160,7 @@
LPVOID SafeInData = NULL;
LPVOID SafeOutData = NULL;
NTSTATUS Status = STATUS_SUCCESS;
- INT Result;
+ INT Result = 0;
if ( pDC == NULL )
{
Modified: trunk/reactos/subsystems/win32/win32k/objects/rect.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/rect.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/rect.c Mon Apr 2 14:32:21 2007
@@ -188,7 +188,7 @@
{
RECT Dest, Src1 = {0}, Src2 = {0};
NTSTATUS Status = STATUS_SUCCESS;
- BOOL Ret;
+ BOOL Ret = FALSE;
_SEH_TRY
{
@@ -300,7 +300,7 @@
{
RECT Dest, Src1, Src2 = {0};
NTSTATUS Status = STATUS_SUCCESS;
- BOOL Ret;
+ BOOL Ret = FALSE;
_SEH_TRY
{
Modified: trunk/reactos/subsystems/win32/win32k/objects/region.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/region.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/region.c Mon Apr 2 14:32:21 2007
@@ -2253,8 +2253,8 @@
DWORD Count,
LPRGNDATA RgnData)
{
- HRGN hRgn;
- PROSRGNDATA Region;
+ HRGN hRgn = 0;
+ PROSRGNDATA Region = NULL;
DWORD nCount = 0;
NTSTATUS Status = STATUS_SUCCESS;
@@ -2404,7 +2404,7 @@
{
PROSRGNDATA Rgn;
RECT SafeRect;
- DWORD ret;
+ DWORD ret = 0;
NTSTATUS Status = STATUS_SUCCESS;
if (!(Rgn = RGNDATA_LockRgn(hRgn)))
@@ -2637,7 +2637,7 @@
NtGdiRectInRegion(HRGN hRgn,
CONST LPRECT unsaferc)
{
- PROSRGNDATA Rgn;
+ PROSRGNDATA Rgn = NULL;
RECT rc = {0};
BOOL Ret;
NTSTATUS Status = STATUS_SUCCESS;
@@ -2713,7 +2713,7 @@
NtGdiUnionRectWithRgn(HRGN hDest, CONST PRECT UnsafeRect)
{
RECT SafeRect;
- PROSRGNDATA Rgn;
+ PROSRGNDATA Rgn = NULL;
NTSTATUS Status = STATUS_SUCCESS;
if(!(Rgn = (PROSRGNDATA)RGNDATA_LockRgn(hDest)))
@@ -2759,7 +2759,7 @@
*/
DWORD STDCALL NtGdiGetRegionData(HRGN hrgn, DWORD count, LPRGNDATA rgndata)
{
- DWORD size;
+ DWORD size = 0;
PROSRGNDATA obj = RGNDATA_LockRgn( hrgn );
NTSTATUS Status = STATUS_SUCCESS;
@@ -3399,7 +3399,7 @@
INT Count,
INT PolyFillMode)
{
- POINT *SafePoints;
+ POINT *SafePoints = NULL;
NTSTATUS Status = STATUS_SUCCESS;
HRGN hRgn;
@@ -3495,9 +3495,9 @@
INT Count,
INT PolyFillMode)
{
- POINT *Safept;
- INT *SafePolyCounts;
- INT nPoints, nEmpty, nInvalid, i;
+ POINT *Safept = NULL;
+ INT *SafePolyCounts = NULL;
+ INT nPoints = 0, nEmpty, nInvalid, i;
HRGN hRgn;
NTSTATUS Status = STATUS_SUCCESS;