Commit in reactos/subsys/win32k on MAIN
eng/bitblt.c+2-21.60 -> 1.61
   /xlate.c+3-31.43 -> 1.44
include/msgqueue.h+2-21.42 -> 1.43
       /window.h+1-11.61 -> 1.62
ntuser/misc.c+2-21.91 -> 1.92
      /window.c+3-31.254 -> 1.255
      /winpos.c+3-31.126 -> 1.127
objects/bitmaps.c+2-21.83 -> 1.84
       /text.c+2-21.114 -> 1.115
+20-20
9 modified files
- Fix compilation errors with GCC 4.0-20041205.

reactos/subsys/win32k/eng
bitblt.c 1.60 -> 1.61
diff -u -r1.60 -r1.61
--- bitblt.c	12 Dec 2004 21:38:25 -0000	1.60
+++ bitblt.c	12 Dec 2004 23:08:09 -0000	1.61
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: bitblt.c,v 1.60 2004/12/12 21:38:25 royce Exp $
+/* $Id: bitblt.c,v 1.61 2004/12/12 23:08:09 navaraf Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -89,7 +89,7 @@
    static BYTE maskbit[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 };
    /* Pattern brushes */
    PGDIBRUSHINST GdiBrush = NULL;
-   HBITMAP PatternSurface;
+   HBITMAP PatternSurface = NULL;
    SURFOBJ *PatternObj = NULL;
    PBITMAPOBJ PatternBitmap;
    ULONG PatternWidth = 0, PatternHeight = 0, PatternY = 0;

reactos/subsys/win32k/eng
xlate.c 1.43 -> 1.44
diff -u -r1.43 -r1.44
--- xlate.c	12 Dec 2004 01:40:36 -0000	1.43
+++ xlate.c	12 Dec 2004 23:08:09 -0000	1.44
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: xlate.c,v 1.43 2004/12/12 01:40:36 weiden Exp $
+/* $Id: xlate.c,v 1.44 2004/12/12 23:08:09 navaraf Exp $
  * 
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -151,8 +151,8 @@
    XLATEGDI *XlateGDI;
    PALGDI *SourcePalGDI = 0;
    PALGDI *DestPalGDI = 0;
-   ULONG SourceRedMask, SourceGreenMask, SourceBlueMask;
-   ULONG DestRedMask, DestGreenMask, DestBlueMask;
+   ULONG SourceRedMask = 0, SourceGreenMask = 0, SourceBlueMask = 0;
+   ULONG DestRedMask = 0, DestGreenMask = 0, DestBlueMask = 0;
    ULONG i;
 
    XlateGDI = EngAllocMem(0, sizeof(XLATEGDI), TAG_XLATEOBJ);

reactos/subsys/win32k/include
msgqueue.h 1.42 -> 1.43
diff -u -r1.42 -r1.43
--- msgqueue.h	11 Dec 2004 19:39:17 -0000	1.42
+++ msgqueue.h	12 Dec 2004 23:08:11 -0000	1.43
@@ -194,8 +194,8 @@
 inline BOOL MsqIsSignaled( PUSER_MESSAGE_QUEUE queue );
 inline VOID MsqSetQueueBits( PUSER_MESSAGE_QUEUE queue, WORD bits );
 inline VOID MsqClearQueueBits( PUSER_MESSAGE_QUEUE queue, WORD bits );
-BOOL IntInitMessagePumpHook();
-BOOL IntUninitMessagePumpHook();
+BOOL STDCALL IntInitMessagePumpHook();
+BOOL STDCALL IntUninitMessagePumpHook();
 #define MAKE_LONG(x, y) ((((y) & 0xFFFF) << 16) | ((x) & 0xFFFF))
 
 PHOOKTABLE FASTCALL MsqGetHooks(PUSER_MESSAGE_QUEUE Queue);

reactos/subsys/win32k/include
window.h 1.61 -> 1.62
diff -u -r1.61 -r1.62
--- window.h	20 Nov 2004 16:46:05 -0000	1.61
+++ window.h	12 Dec 2004 23:08:11 -0000	1.62
@@ -212,7 +212,7 @@
 IntGetWindowInfo(PWINDOW_OBJECT WindowObject, PWINDOWINFO pwi);
 
 VOID FASTCALL
-IntGetWindowBorderMeasures(PWINDOW_OBJECT WindowObject, INT *cx, INT *cy);
+IntGetWindowBorderMeasures(PWINDOW_OBJECT WindowObject, UINT *cx, UINT *cy);
 
 BOOL FASTCALL
 IntAnyPopup(VOID);

reactos/subsys/win32k/ntuser
misc.c 1.91 -> 1.92
diff -u -r1.91 -r1.92
--- misc.c	12 Dec 2004 01:40:37 -0000	1.91
+++ misc.c	12 Dec 2004 23:08:11 -0000	1.92
@@ -1,4 +1,4 @@
-/* $Id: misc.c,v 1.91 2004/12/12 01:40:37 weiden Exp $
+/* $Id: misc.c,v 1.92 2004/12/12 23:08:11 navaraf Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -563,7 +563,7 @@
     case TWOPARAM_ROUTINE_GETSYSCOLORPENS:
     case TWOPARAM_ROUTINE_GETSYSCOLORS:
     {
-      DWORD Ret;
+      DWORD Ret = 0;
       union
       {
         PVOID Pointer;

reactos/subsys/win32k/ntuser
window.c 1.254 -> 1.255
diff -u -r1.254 -r1.255
--- window.c	12 Dec 2004 16:47:52 -0000	1.254
+++ window.c	12 Dec 2004 23:08:11 -0000	1.255
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: window.c,v 1.254 2004/12/12 16:47:52 navaraf Exp $
+/* $Id: window.c,v 1.255 2004/12/12 23:08:11 navaraf Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -402,7 +402,7 @@
 }
 
 VOID FASTCALL
-IntGetWindowBorderMeasures(PWINDOW_OBJECT WindowObject, INT *cx, INT *cy)
+IntGetWindowBorderMeasures(PWINDOW_OBJECT WindowObject, UINT *cx, UINT *cy)
 {
   if(HAS_DLGFRAME(WindowObject->Style, WindowObject->ExStyle) && !(WindowObject->Style & WS_MINIMIZE))
   {
@@ -1327,7 +1327,7 @@
 IntCalcDefPosSize(PWINDOW_OBJECT Parent, PWINDOW_OBJECT WindowObject, RECT *rc, BOOL IncPos)
 {
   SIZE Sz;
-  POINT Pos;
+  POINT Pos = {0, 0};
   
   if(Parent != NULL)
   {

reactos/subsys/win32k/ntuser
winpos.c 1.126 -> 1.127
diff -u -r1.126 -r1.127
--- winpos.c	12 Dec 2004 01:40:38 -0000	1.126
+++ winpos.c	12 Dec 2004 23:08:12 -0000	1.127
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: winpos.c,v 1.126 2004/12/12 01:40:38 weiden Exp $
+/* $Id: winpos.c,v 1.127 2004/12/12 23:08:12 navaraf Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -175,7 +175,7 @@
 WinPosInitInternalPos(PWINDOW_OBJECT WindowObject, POINT *pt, PRECT RestoreRect)
 {
   PWINDOW_OBJECT Parent;
-  INT XInc, YInc;
+  UINT XInc, YInc;
   
   if (WindowObject->InternalPos == NULL)
     {
@@ -331,7 +331,7 @@
 VOID FASTCALL
 WinPosFillMinMaxInfoStruct(PWINDOW_OBJECT Window, MINMAXINFO *Info)
 {
-  INT XInc, YInc;
+  UINT XInc, YInc;
   RECT WorkArea;
   PDESKTOP_OBJECT Desktop = PsGetWin32Thread()->Desktop; /* Or rather get it from the window? */
   

reactos/subsys/win32k/objects
bitmaps.c 1.83 -> 1.84
diff -u -r1.83 -r1.84
--- bitmaps.c	12 Dec 2004 20:58:09 -0000	1.83
+++ bitmaps.c	12 Dec 2004 23:08:12 -0000	1.84
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: bitmaps.c,v 1.83 2004/12/12 20:58:09 royce Exp $ */
+/* $Id: bitmaps.c,v 1.84 2004/12/12 23:08:12 navaraf Exp $ */
 #include <w32k.h>
 
 #define IN_RECT(r,x,y) \
@@ -156,7 +156,7 @@
 			SourcePalette = DCSrc->w.hPalette;
 
 		/* KB41464 details how to convert between mono and color */
-		if (DCDest->w.bitsPerPixel == DCSrc->w.bitsPerPixel == 1)
+		if (DCDest->w.bitsPerPixel == 1 && DCSrc->w.bitsPerPixel == 1)
 		{
 			XlateObj = NULL;
 		}

reactos/subsys/win32k/objects
text.c 1.114 -> 1.115
diff -u -r1.114 -r1.115
--- text.c	12 Dec 2004 21:58:42 -0000	1.114
+++ text.c	12 Dec 2004 23:08:13 -0000	1.115
@@ -22,7 +22,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: text.c,v 1.114 2004/12/12 21:58:42 royce Exp $ */
+/* $Id: text.c,v 1.115 2004/12/12 23:08:13 navaraf Exp $ */
 #include <w32k.h>
 
 #include <ft2build.h>
@@ -1497,7 +1497,7 @@
    INT yoff;
    FONTOBJ *FontObj;
    PFONTGDI FontGDI;
-   PTEXTOBJ TextObj;
+   PTEXTOBJ TextObj = NULL;
    PPALGDI PalDestGDI;
    XLATEOBJ *XlateObj, *XlateObj2;
    ULONG Mode;
CVSspam 0.2.8