Fix win32k build errors so HEAD can build again, although most are caused by poor...
authorAlex Ionescu <aionescu@gmail.com>
Tue, 6 Sep 2005 23:05:13 +0000 (23:05 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Tue, 6 Sep 2005 23:05:13 +0000 (23:05 +0000)
svn path=/trunk/; revision=17707

reactos/subsys/win32k/dib/dib1bpp.c
reactos/subsys/win32k/eng/xlate.c
reactos/subsys/win32k/ntuser/keyboard.c
reactos/subsys/win32k/ntuser/menu.c
reactos/subsys/win32k/objects/dc.c

index b4dec8f..e782f26 100644 (file)
@@ -514,7 +514,7 @@ BOOLEAN DIB_1BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
    int zoomX;
    int zoomY;
    int count;
-   int saveX;
+   int saveX = 0;
    int saveY;
    BOOLEAN DesIsBiggerY=FALSE;
 
index c48f64a..2721831 100644 (file)
@@ -528,7 +528,10 @@ XLATEOBJ_cGetPalette(XLATEOBJ *XlateObj, ULONG PalOutType, ULONG cPal,
    else if (PalOutType == XO_DESTPALETTE)
       hPalette = XlateGDI->DestPal;
    else
+   {
       UNIMPLEMENTED;
+      return 0;
+    }
 
    PalGDI = PALETTE_LockPalette(hPalette);
    if(PalGDI != NULL)
index 0c7bd22..6307ad9 100644 (file)
@@ -1024,7 +1024,7 @@ W32kKeyProcessMessage(LPMSG Msg,
       { VK_UP,     VK_NUMPAD8 },
       { VK_PRIOR,  VK_NUMPAD9 },
       { 0,0 } };
-  PVSC_VK VscVkTable;
+  PVSC_VK VscVkTable = NULL;
 
   if( !KeyboardLayout || !Msg ||
       (Msg->message != WM_KEYDOWN && Msg->message != WM_SYSKEYDOWN &&
index 32e198b..afbe713 100644 (file)
@@ -1656,7 +1656,7 @@ NtUserGetMenuItemRect(
      ROSMENUITEMINFO mii;
      HWND referenceHwnd;
      LPPOINT lpPoints;
-     LPRECT lpRect;
+     LPRECT lpRect = NULL;
      POINT FromOffset;
      LONG XMove, YMove;
      ULONG i;
index 94cc363..b574cb1 100644 (file)
@@ -1441,7 +1441,7 @@ NtGdiSetDCState ( HDC hDC, HDC hDCSave )
 INT FASTCALL
 IntGdiGetDeviceCaps(PDC dc, INT Index)
 {
-  INT ret;
+  INT ret = 0;
   POINT  pt;
 
   /* Retrieve capability */