fixed uninitialized variable warnings
Modified: trunk/reactos/subsys/win32k/ntuser/cursoricon.c
Modified: trunk/reactos/subsys/win32k/ntuser/keyboard.c
Modified: trunk/reactos/subsys/win32k/objects/coord.c
Modified: trunk/reactos/subsys/win32k/objects/rect.c
Modified: trunk/reactos/subsys/win32k/objects/region.c
_____
Modified: trunk/reactos/subsys/win32k/ntuser/cursoricon.c
--- trunk/reactos/subsys/win32k/ntuser/cursoricon.c 2005-09-27
08:52:17 UTC (rev 18119)
+++ trunk/reactos/subsys/win32k/ntuser/cursoricon.c 2005-09-27
10:52:10 UTC (rev 18120)
@@ -847,7 +847,7 @@
PSYSTEM_CURSORINFO CurInfo;
RECT Rect;
PWINDOW_OBJECT DesktopWindow = NULL;
- POINT MousePos;
+ POINT MousePos = {0};
DECLARE_RETURN(BOOL);
DPRINT("Enter NtUserClipCursor\n");
_____
Modified: trunk/reactos/subsys/win32k/ntuser/keyboard.c
--- trunk/reactos/subsys/win32k/ntuser/keyboard.c 2005-09-27
08:52:17 UTC (rev 18119)
+++ trunk/reactos/subsys/win32k/ntuser/keyboard.c 2005-09-27
10:52:10 UTC (rev 18120)
@@ -930,7 +930,7 @@
case 2:
{
- WCHAR wp[2];
+ WCHAR wp[2] = {0};
ret = VkToScan( Code, FALSE, keyLayout );
ToUnicodeInner( Code, ret, 0, wp, 2, 0, keyLayout );
_____
Modified: trunk/reactos/subsys/win32k/objects/coord.c
--- trunk/reactos/subsys/win32k/objects/coord.c 2005-09-27 08:52:17 UTC
(rev 18119)
+++ trunk/reactos/subsys/win32k/objects/coord.c 2005-09-27 10:52:10 UTC
(rev 18120)
@@ -62,7 +62,7 @@
CONST LPXFORM Unsafexform2)
{
XFORM xformTemp;
- XFORM xform1, xform2;
+ XFORM xform1 = {0}, xform2 = {0};
NTSTATUS Status = STATUS_SUCCESS;
BOOL Ret;
@@ -425,7 +425,7 @@
DWORD Mode)
{
PDC dc;
- XFORM SafeXForm;
+ XFORM SafeXForm = {0};
NTSTATUS Status = STATUS_SUCCESS;
dc = DC_LockDc(hDC);
_____
Modified: trunk/reactos/subsys/win32k/objects/rect.c
--- trunk/reactos/subsys/win32k/objects/rect.c 2005-09-27 08:52:17 UTC
(rev 18119)
+++ trunk/reactos/subsys/win32k/objects/rect.c 2005-09-27 10:52:10 UTC
(rev 18120)
@@ -106,7 +106,7 @@
BOOL STDCALL
NtGdiOffsetRect(LPRECT UnsafeRect, INT x, INT y)
{
- RECT Rect;
+ RECT Rect = {0};
NTSTATUS Status = STATUS_SUCCESS;
_SEH_TRY
@@ -298,7 +298,7 @@
BOOL STDCALL
NtGdiIntersectRect(PRECT UnsafeDest, const RECT* UnsafeSrc1, const
RECT* UnsafeSrc2)
{
- RECT Dest, Src1, Src2;
+ RECT Dest, Src1, Src2 = {0};
NTSTATUS Status = STATUS_SUCCESS;
BOOL Ret;
_____
Modified: trunk/reactos/subsys/win32k/objects/region.c
--- trunk/reactos/subsys/win32k/objects/region.c 2005-09-27
08:52:17 UTC (rev 18119)
+++ trunk/reactos/subsys/win32k/objects/region.c 2005-09-27
10:52:10 UTC (rev 18120)
@@ -2635,7 +2635,7 @@
CONST LPRECT unsaferc)
{
PROSRGNDATA Rgn;
- RECT rc;
+ RECT rc = {0};
BOOL Ret;
NTSTATUS Status = STATUS_SUCCESS;