Commit in reactos on MAIN
subsys/system/explorer/shell/webchild.h+2-21.12 -> 1.13
subsys/system/explorer/utility/window.h+4-41.56 -> 1.57
                              /xmlstorage.h+1-11.14 -> 1.15
tools/helper.mk+32-321.60 -> 1.61
drivers/dd/floppy/dpc.c+2-11.7 -> 1.8
drivers/dd/blue/blue.c+2-21.44 -> 1.45
drivers/storage/class2/class2.c+5-51.52 -> 1.53
drivers/storage/disk/disk.c+2-31.40 -> 1.41
+50-50
8 modified files
Avoid warnings when using gcc 3.4

reactos/subsys/system/explorer/shell
webchild.h 1.12 -> 1.13
diff -u -r1.12 -r1.13
--- webchild.h	12 Apr 2004 17:09:04 -0000	1.12
+++ webchild.h	10 May 2004 18:02:19 -0000	1.13
@@ -117,7 +117,7 @@
 
 	STDMETHODIMP QueryInterface(REFIID riid, LPVOID* ppv) {*ppv=0;
 	 if (IsEqualIID(riid, _uuid_base) ||
-		 IsEqualIID(riid, IID_IUnknown)) {*ppv=static_cast<BASE*>(this); AddRef(); return S_OK;}
+		 IsEqualIID(riid, IID_IUnknown)) {*ppv=static_cast<BASE*>(this); this->AddRef(); return S_OK;}
 	 return E_NOINTERFACE;}
 
 protected:
@@ -158,7 +158,7 @@
 {
 	ConnectionPoint(IConnectionPointContainer* pCPC, REFIID riid)
 	{
-		CheckError(pCPC->FindConnectionPoint(riid, &_p));
+		CheckError(pCPC->FindConnectionPoint(riid, &this->_p));
 	}
 };
 

reactos/subsys/system/explorer/utility
window.h 1.56 -> 1.57
diff -u -r1.56 -r1.57
--- window.h	12 Apr 2004 17:09:04 -0000	1.56
+++ window.h	10 May 2004 18:02:19 -0000	1.57
@@ -544,11 +544,11 @@
 
 	virtual void GetClientSpace(PRECT prect)
 	{
-		 if (!IsIconic(_hwnd)) {
-			GetClientRect(_hwnd, prect);
+		 if (!IsIconic(this->_hwnd)) {
+			GetClientRect(this->_hwnd, prect);
 		 } else {
 			WINDOWPLACEMENT wp;
-			GetWindowPlacement(_hwnd, &wp);
+			GetWindowPlacement(this->_hwnd, &wp);
 			prect->left = prect->top = 0;
 			prect->right = wp.rcNormalPosition.right-wp.rcNormalPosition.left-
 				2*(GetSystemMetrics(SM_CXSIZEFRAME)+GetSystemMetrics(SM_CXEDGE));
@@ -632,7 +632,7 @@
 		switch(nmsg) {
 		  case WM_DRAWITEM:
 			if (wparam) {	// should there be drawn a control?
-				HWND hctl = GetDlgItem(_hwnd, wparam);
+				HWND hctl = GetDlgItem(this->_hwnd, wparam);
 
 				if (hctl)
 					return SendMessage(hctl, PM_DISPATCH_DRAWITEM, wparam, lparam);

reactos/subsys/system/explorer/utility
xmlstorage.h 1.14 -> 1.15
diff -u -r1.14 -r1.15
--- xmlstorage.h	9 Apr 2004 11:51:37 -0000	1.14
+++ xmlstorage.h	10 May 2004 18:02:19 -0000	1.15
@@ -295,7 +295,7 @@
 inline bool operator==(const String& s1, const char* s2)
 {
 	LPCWSTR p = s1;
-	const char* q = s2;
+	const unsigned char* q = (const unsigned char *) s2;
 
 	while(*p && *q)
 		if (*p++ != *q++)

reactos/tools
helper.mk 1.60 -> 1.61
diff -u -r1.60 -r1.61
--- helper.mk	10 Mar 2004 15:22:44 -0000	1.60
+++ helper.mk	10 May 2004 18:02:19 -0000	1.61
@@ -1,4 +1,4 @@
-# $Id: helper.mk,v 1.60 2004/03/10 15:22:44 silverblade Exp $
+# $Id: helper.mk,v 1.61 2004/05/10 18:02:19 gvg Exp $
 #
 # Helper makefile for ReactOS modules
 # Variables this makefile accepts:
@@ -122,8 +122,8 @@
   MK_DDKLIBS :=
   MK_SDKLIBS :=
 ifneq ($(WINE_MODE),yes)
-  MK_CFLAGS := -I./
-  MK_CPPFLAGS := -I./
+  MK_CFLAGS := -I.
+  MK_CPPFLAGS := -I.
 else
   MK_CFLAGS := -I$(PATH_TO_TOP)/include/wine
   MK_CPPFLAGS := -I$(PATH_TO_TOP)/include/wine
@@ -150,8 +150,8 @@
   MK_DEFENTRY := _WinMain@16
   MK_DDKLIBS :=
   MK_SDKLIBS :=
-  MK_CFLAGS := -I./
-  MK_CPPFLAGS := -I./
+  MK_CFLAGS := -I.
+  MK_CPPFLAGS := -I.
   MK_IMPLIB := yes
   MK_IMPLIBONLY := no
   MK_IMPLIBDEFPATH := $(SDK_PATH_LIB)
@@ -170,11 +170,11 @@
   MK_DDKLIBS :=
   MK_SDKLIBS :=
 ifneq ($(WINE_MODE),yes)
-  MK_CFLAGS := -I./
-  MK_CPPFLAGS := -I./
+  MK_CFLAGS := -I.
+  MK_CPPFLAGS := -I.
 else
-  MK_CFLAGS := -I$(PATH_TO_TOP)/include/wine -I./ -I$(WINE_INCLUDE)
-  MK_CPPFLAGS := -I$(PATH_TO_TOP)/include/wine -I./ -I$(WINE_INCLUDE)
+  MK_CFLAGS := -I$(PATH_TO_TOP)/include/wine -I. -I$(WINE_INCLUDE)
+  MK_CPPFLAGS := -I$(PATH_TO_TOP)/include/wine -I. -I$(WINE_INCLUDE)
   MK_RCFLAGS := --include-dir $(PATH_TO_TOP)/include/wine --include-dir $(WINE_INCLUDE)
 endif
   MK_IMPLIB := yes
@@ -199,8 +199,8 @@
   MK_DEFENTRY :=
   MK_DDKLIBS :=
   MK_SDKLIBS :=
-  MK_CFLAGS := -I./
-  MK_CPPFLAGS := -I./
+  MK_CFLAGS := -I.
+  MK_CPPFLAGS := -I.
   MK_IMPLIB := no
   MK_IMPLIBONLY := no
   MK_IMPLIBDEFPATH :=
@@ -215,8 +215,8 @@
   TARGET_NORC := yes
   MK_MODE := static
   MK_DEFEXT := .a
-  MK_CFLAGS := -I./
-  MK_CPPFLAGS := -I./
+  MK_CFLAGS := -I.
+  MK_CPPFLAGS := -I.
   MK_IMPLIB := no
   MK_IMPLIBONLY := no
   MK_IMPLIBDEFPATH := $(DDK_PATH_LIB)
@@ -229,8 +229,8 @@
   MK_DEFENTRY :=
   MK_DDKLIBS :=
   MK_SDKLIBS :=
-  MK_CFLAGS := -I./
-  MK_CPPFLAGS := -I./
+  MK_CFLAGS := -I.
+  MK_CPPFLAGS := -I.
   MK_IMPLIB := no
   MK_IMPLIBONLY := yes
   MK_IMPLIBDEFPATH := $(DDK_PATH_LIB)
@@ -248,8 +248,8 @@
   MK_DEFENTRY := _DriverEntry@8
   MK_DDKLIBS := ntoskrnl.a hal.a
   MK_SDKLIBS :=
-  MK_CFLAGS := -D__NTDRIVER__ -I./
-  MK_CPPFLAGS := -D__NTDRIVER__ -I./
+  MK_CFLAGS := -D__NTDRIVER__ -I.
+  MK_CPPFLAGS := -D__NTDRIVER__ -I.
   MK_IMPLIB := no
   MK_IMPLIBONLY := no
   MK_IMPLIBDEFPATH :=
@@ -267,8 +267,8 @@
   MK_DEFENTRY := _DriverEntry@8
   MK_DDKLIBS := ntoskrnl.a hal.a
   MK_SDKLIBS :=
-  MK_CFLAGS := -D__NTDRIVER__ -I./
-  MK_CPPFLAGS := -D__NTDRIVER__ -I./
+  MK_CFLAGS := -D__NTDRIVER__ -I.
+  MK_CPPFLAGS := -D__NTDRIVER__ -I.
   MK_IMPLIB := yes
   MK_IMPLIBONLY := no
   MK_IMPLIBDEFPATH := $(DDK_PATH_LIB)
@@ -286,8 +286,8 @@
   MK_DEFENTRY := _DriverEntry@8
   MK_DDKLIBS := ntoskrnl.a
   MK_SDKLIBS :=
-  MK_CFLAGS := -D__NTHAL__ -I./
-  MK_CPPFLAGS := -D__NTHAL__ -I./
+  MK_CFLAGS := -D__NTHAL__ -I.
+  MK_CPPFLAGS := -D__NTHAL__ -I.
   MK_IMPLIB := yes
   MK_IMPLIBONLY := no
   MK_IMPLIBDEFPATH :=
@@ -305,8 +305,8 @@
   MK_DEFENTRY := _DriverEntry@8
   MK_DDKLIBS :=
   MK_SDKLIBS :=
-  MK_CFLAGS := -D__NTDRIVER__ -I./
-  MK_CPPFLAGS := -D__NTDRIVER__ -I./
+  MK_CFLAGS := -D__NTDRIVER__ -I.
+  MK_CPPFLAGS := -D__NTDRIVER__ -I.
   MK_IMPLIB := no
   MK_IMPLIBONLY := no
   MK_IMPLIBDEFPATH :=
@@ -324,8 +324,8 @@
   MK_DEFENTRY := _DriverEntry@8
   MK_DDKLIBS :=
   MK_SDKLIBS :=
-  MK_CFLAGS := -D__NTDRIVER__ -I./
-  MK_CPPFLAGS := -D__NTDRIVER__ -I./
+  MK_CFLAGS := -D__NTDRIVER__ -I.
+  MK_CPPFLAGS := -D__NTDRIVER__ -I.
   MK_IMPLIB := no
   MK_IMPLIBONLY := no
   MK_IMPLIBDEFPATH :=
@@ -343,8 +343,8 @@
   MK_DEFENTRY := _DrvEnableDriver@12
   MK_DDKLIBS := ntoskrnl.a hal.a win32k.a
   MK_SDKLIBS :=
-  MK_CFLAGS := -D__NTDRIVER__ -I./
-  MK_CPPFLAGS := -D__NTDRIVER__ -I./
+  MK_CFLAGS := -D__NTDRIVER__ -I.
+  MK_CPPFLAGS := -D__NTDRIVER__ -I.
   MK_IMPLIB := yes
   MK_IMPLIBONLY := no
   MK_IMPLIBDEFPATH := $(DDK_PATH_LIB)
@@ -407,8 +407,8 @@
   MK_DEFENTRY := _DriverEntry@8
   MK_DDKLIBS := ntoskrnl.a hal.a
   MK_SDKLIBS :=
-  MK_CFLAGS := -D__NTDRIVER__ -I./
-  MK_CPPFLAGS := -D__NTDRIVER__ -I./
+  MK_CFLAGS := -D__NTDRIVER__ -I.
+  MK_CPPFLAGS := -D__NTDRIVER__ -I.
   MK_IMPLIB := yes
   MK_IMPLIBONLY := no
   MK_IMPLIBDEFPATH := $(DDK_PATH_LIB)
@@ -425,8 +425,8 @@
   MK_DEFENTRY := 0x0
   MK_DDKLIBS := ntoskrnl.a hal.a
   MK_SDKLIBS :=
-  MK_CFLAGS := -D__NTDRIVER__ -I./
-  MK_CPPFLAGS := -D__NTDRIVER__ -I./
+  MK_CFLAGS := -D__NTDRIVER__ -I.
+  MK_CPPFLAGS := -D__NTDRIVER__ -I.
   MK_IMPLIB := yes
   MK_IMPLIBONLY := no
   MK_IMPLIBDEFPATH := $(DDK_PATH_LIB)
@@ -445,7 +445,7 @@
   MK_DEFENTRY := _DllMain@12
   MK_DDKLIBS :=
   MK_SDKLIBS :=
-  MK_CFLAGS := -D__USE_W32API -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x501 -DWINVER=0x501 -D__need_offsetof -DCOBJMACROS -I$(PATH_TO_TOP)/include/wine
+  MK_CFLAGS := -D__USE_W32API -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x501 -DWINVER=0x501 -D_STDDEF_H -DCOBJMACROS -I$(PATH_TO_TOP)/include/wine
   MK_CPPFLAGS := -D__USE_W32API -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x501 -DWINVER=0x501 -D__need_offsetof -DCOBJMACROS -I$(PATH_TO_TOP)/include -I$(PATH_TO_TOP)/include/wine
   MK_RCFLAGS := --define __USE_W32API --include-dir $(PATH_TO_TOP)/include/wine
   MK_IMPLIB := yes

reactos/drivers/dd/floppy
dpc.c 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- dpc.c	13 Nov 2003 14:22:03 -0000	1.7
+++ dpc.c	10 May 2004 18:02:19 -0000	1.8
@@ -216,7 +216,8 @@
   Stack->Parameters.Read.Length -= ControllerExtension->TransferLength;
 
   /* drivercontext used for current va */
-  (ULONG)ControllerExtension->Irp->Tail.Overlay.DriverContext[0] += ControllerExtension->TransferLength;
+  ControllerExtension->Irp->Tail.Overlay.DriverContext[0] = (PVOID) ((ULONG) ControllerExtension->Irp->Tail.Overlay.DriverContext[0]
+                                                                     + ControllerExtension->TransferLength);
   DPRINT ("First ulong: %x\n", *((PULONG)ControllerExtension->MapRegisterBase))
 
   /* If there is more IO to be done, restart execute routine to issue next read */

reactos/drivers/dd/blue
blue.c 1.44 -> 1.45
diff -u -r1.44 -r1.45
--- blue.c	10 Feb 2004 16:22:55 -0000	1.44
+++ blue.c	10 May 2004 18:02:19 -0000	1.45
@@ -1,4 +1,4 @@
-/* $Id: blue.c,v 1.44 2004/02/10 16:22:55 navaraf Exp $
+/* $Id: blue.c,v 1.45 2004/05/10 18:02:19 gvg Exp $
  *
  * COPYRIGHT:            See COPYING in the top level directory
  * PROJECT:              ReactOS kernel
@@ -471,7 +471,7 @@
 
           for (dwCount = 0; dwCount < stk->Parameters.DeviceIoControl.OutputBufferLength; dwCount++, pAttr++)
             {
-              (char) *pAttr = vidmem[offset + (dwCount * 2)];
+              *((char *) pAttr) = vidmem[offset + (dwCount * 2)];
             }
 
           Buf->dwTransfered = dwCount;

reactos/drivers/storage/class2
class2.c 1.52 -> 1.53
diff -u -r1.52 -r1.53
--- class2.c	1 Apr 2004 17:29:53 -0000	1.52
+++ class2.c	10 May 2004 18:02:20 -0000	1.53
@@ -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: class2.c,v 1.52 2004/04/01 17:29:53 jimtabor Exp $
+/* $Id: class2.c,v 1.53 2004/05/10 18:02:20 gvg Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -1380,9 +1380,9 @@
 
       /* Retry the request */
       if ((Retry) &&
-	  ((ULONG)IrpStack->Parameters.Others.Argument4 > 0))
+	  ((ULONG_PTR)IrpStack->Parameters.Others.Argument4 > 0))
 	{
-	  ((ULONG)IrpStack->Parameters.Others.Argument4)--;
+	  IrpStack->Parameters.Others.Argument4 = (PVOID) ((ULONG_PTR)IrpStack->Parameters.Others.Argument4 - 1);
 
 	  ScsiClassRetryRequest(DeviceObject,
 				Irp,
@@ -1502,9 +1502,9 @@
 
       /* Retry the request */
       if ((Retry) &&
-	  ((ULONG)IrpStack->Parameters.Others.Argument4 > 0))
+	  ((ULONG_PTR)IrpStack->Parameters.Others.Argument4 > 0))
 	{
-	  ((ULONG)IrpStack->Parameters.Others.Argument4)--;
+	  IrpStack->Parameters.Others.Argument4 = (PVOID) ((ULONG_PTR)IrpStack->Parameters.Others.Argument4 - 1);
 
 	  ScsiClassRetryRequest(DeviceObject,
 				Irp,

reactos/drivers/storage/disk
disk.c 1.40 -> 1.41
diff -u -r1.40 -r1.41
--- disk.c	1 Apr 2004 17:24:47 -0000	1.40
+++ disk.c	10 May 2004 18:02:20 -0000	1.41
@@ -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: disk.c,v 1.40 2004/04/01 17:24:47 jimtabor Exp $
+/* $Id: disk.c,v 1.41 2004/05/10 18:02:20 gvg Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -1186,8 +1186,7 @@
           Information = 0;
 	  if (OutputLength != 0)
 	    {
-	       ((PULONG)(Irp->AssociatedIrp.SystemBuffer)) =
-                             DeviceExtension->MediaChangeCount;
+	       Irp->AssociatedIrp.SystemBuffer = (PVOID) DeviceExtension->MediaChangeCount;
 	       Information = sizeof(ULONG);
 
 	    }
CVSspam 0.2.8