fixed uninitialized variable warnings
authorThomas Bluemel <thomas@reactsoft.com>
Tue, 27 Sep 2005 10:52:10 +0000 (10:52 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Tue, 27 Sep 2005 10:52:10 +0000 (10:52 +0000)
svn path=/trunk/; revision=18120

reactos/subsys/win32k/ntuser/cursoricon.c
reactos/subsys/win32k/ntuser/keyboard.c
reactos/subsys/win32k/objects/coord.c
reactos/subsys/win32k/objects/rect.c
reactos/subsys/win32k/objects/region.c

index 86aac8b..ea26e00 100644 (file)
@@ -847,7 +847,7 @@ NtUserClipCursor(
    PSYSTEM_CURSORINFO CurInfo;
    RECT Rect;
    PWINDOW_OBJECT DesktopWindow = NULL;
-   POINT MousePos;
+   POINT MousePos = {0};
    DECLARE_RETURN(BOOL);
 
    DPRINT("Enter NtUserClipCursor\n");
index 4b84525..5d6fc6a 100644 (file)
@@ -930,7 +930,7 @@ static UINT IntMapVirtualKeyEx( UINT Code, UINT Type, PKBDTABLES keyLayout )
 
       case 2:
          {
-            WCHAR wp[2];
+            WCHAR wp[2] = {0};
 
             ret = VkToScan( Code, FALSE, keyLayout );
             ToUnicodeInner( Code, ret, 0, wp, 2, 0, keyLayout );
index 612ff02..9097fa1 100644 (file)
@@ -62,7 +62,7 @@ BOOL STDCALL NtGdiCombineTransform(LPXFORM  UnsafeXFormResult,
                            CONST LPXFORM  Unsafexform2)
 {
   XFORM  xformTemp;
-  XFORM  xform1, xform2;
+  XFORM  xform1 = {0}, xform2 = {0};
   NTSTATUS Status = STATUS_SUCCESS;
   BOOL Ret;
 
@@ -425,7 +425,7 @@ NtGdiModifyWorldTransform(HDC            hDC,
                           DWORD          Mode)
 {
    PDC dc;
-   XFORM SafeXForm;
+   XFORM SafeXForm = {0};
    NTSTATUS Status = STATUS_SUCCESS;
 
    dc = DC_LockDc(hDC);
index aa2b00d..e9c1638 100644 (file)
@@ -106,7 +106,7 @@ IntGdiOffsetRect(LPRECT Rect, INT x, INT y)
 BOOL STDCALL
 NtGdiOffsetRect(LPRECT UnsafeRect, INT x, INT y)
 {
-  RECT Rect;
+  RECT Rect = {0};
   NTSTATUS Status = STATUS_SUCCESS;
 
   _SEH_TRY
@@ -298,7 +298,7 @@ IntGdiIntersectRect(PRECT Dest, const RECT* Src1, const RECT* Src2)
 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;
 
index 5ceda5d..157cf54 100644 (file)
@@ -2635,7 +2635,7 @@ NtGdiRectInRegion(HRGN  hRgn,
                        CONST LPRECT  unsaferc)
 {
   PROSRGNDATA Rgn;
-  RECT rc;
+  RECT rc = {0};
   BOOL Ret;
   NTSTATUS Status = STATUS_SUCCESS;