Author: cwittich
Date: Sat Jun 24 01:19:01 2006
New Revision: 22549
URL:
http://svn.reactos.org/svn/reactos?rev=22549&view=rev
Log:
-fixed some warnings (msvc)
Modified:
trunk/reactos/dll/cpl/sysdm/advanced.c
trunk/reactos/dll/cpl/sysdm/environment.c
trunk/reactos/dll/cpl/sysdm/general.c
trunk/reactos/dll/cpl/sysdm/hardware.c
trunk/reactos/dll/cpl/sysdm/sysdm.c
trunk/reactos/dll/cpl/sysdm/userprofile.c
trunk/reactos/dll/cpl/sysdm/virtmem.c
trunk/reactos/dll/cpl/timedate/dateandtime.c
trunk/reactos/dll/cpl/timedate/timedate.c
trunk/reactos/dll/cpl/timedate/timezone.c
Modified: trunk/reactos/dll/cpl/sysdm/advanced.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/advanced.c?r…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/advanced.c (original)
+++ trunk/reactos/dll/cpl/sysdm/advanced.c Sat Jun 24 01:19:01 2006
@@ -40,6 +40,7 @@
WPARAM wParam,
LPARAM lParam)
{
+ UNREFERENCED_PARAMETER(lParam)
switch (uMsg)
{
case WM_INITDIALOG:
@@ -52,14 +53,14 @@
DialogBox(hApplet,
MAKEINTRESOURCE(IDD_VIRTMEM),
hwndDlg,
- VirtMemDlgProc);
+ (DLGPROC) VirtMemDlgProc);
break;
case IDC_ENVVAR:
DialogBox(hApplet,
MAKEINTRESOURCE(IDD_ENVIRONMENT_VARIABLES),
hwndDlg,
- EnvironmentDlgProc);
+ (DLGPROC) EnvironmentDlgProc);
break;
}
break;
Modified: trunk/reactos/dll/cpl/sysdm/environment.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/environment.…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/environment.c (original)
+++ trunk/reactos/dll/cpl/sysdm/environment.c Sat Jun 24 01:19:01 2006
@@ -326,7 +326,7 @@
if (!DialogBoxParam(hApplet,
MAKEINTRESOURCE(IDD_EDIT_VARIABLE),
hwndDlg,
- EditVariableDlgProc,
+ (DLGPROC) EditVariableDlgProc,
(LPARAM)VarData) > 0)
{
if (VarData->lpName != NULL)
@@ -378,7 +378,7 @@
if (DialogBoxParam(hApplet,
MAKEINTRESOURCE(IDD_EDIT_VARIABLE),
hwndDlg,
- EditVariableDlgProc,
+ (DLGPROC) EditVariableDlgProc,
(LPARAM)VarData) > 0)
{
ListView_SetItemText(hwndListView, iItem, 0, VarData->lpName);
Modified: trunk/reactos/dll/cpl/sysdm/general.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/general.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/general.c (original)
+++ trunk/reactos/dll/cpl/sysdm/general.c Sat Jun 24 01:19:01 2006
@@ -98,6 +98,9 @@
LPARAM lParam
)
{
+ UNREFERENCED_PARAMETER(lParam)
+ UNREFERENCED_PARAMETER(wParam)
+
switch(uMsg)
{
case WM_INITDIALOG:
Modified: trunk/reactos/dll/cpl/sysdm/hardware.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/hardware.c?r…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/hardware.c (original)
+++ trunk/reactos/dll/cpl/sysdm/hardware.c Sat Jun 24 01:19:01 2006
@@ -39,11 +39,11 @@
PDEVMGREXEC DevMgrExec;
BOOL Ret;
- if(!(hDll = LoadLibrary(_TEXT("devmgr.dll"))))
- {
+ hDll = LoadLibrary(_TEXT("devmgr.dll"));
+ if(!hDll)
return FALSE;
- }
- if(!(DevMgrExec = (PDEVMGREXEC)GetProcAddress(hDll,
"DeviceManager_ExecuteW")))
+ DevMgrExec = (PDEVMGREXEC)GetProcAddress(hDll, "DeviceManager_ExecuteW");
+ if(!DevMgrExec)
{
FreeLibrary(hDll);
return FALSE;
@@ -63,6 +63,7 @@
LPARAM lParam
)
{
+ UNREFERENCED_PARAMETER(lParam)
switch(uMsg)
{
case WM_INITDIALOG:
Modified: trunk/reactos/dll/cpl/sysdm/sysdm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/sysdm.c?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/sysdm.c (original)
+++ trunk/reactos/dll/cpl/sysdm/sysdm.c Sat Jun 24 01:19:01 2006
@@ -64,6 +64,7 @@
LPARAM lParam
)
{
+ UNREFERENCED_PARAMETER(hwndDlg)
switch(uMsg)
{
case PSCB_BUTTONPRESSED:
@@ -111,11 +112,11 @@
psh.ppsp = psp;
psh.pfnCallback = NULL; /* PropSheetProc; */
- InitPropSheetPage(&psp[0], IDD_PROPPAGEGENERAL, GeneralPageProc);
- InitPropSheetPage(&psp[1], IDD_PROPPAGECOMPUTER, ComputerPageProc);
- InitPropSheetPage(&psp[2], IDD_PROPPAGEHARDWARE, HardwarePageProc);
- InitPropSheetPage(&psp[3], IDD_PROPPAGEUSERPROFILE, UserProfilePageProc);
- InitPropSheetPage(&psp[4], IDD_PROPPAGEADVANCED, AdvancedPageProc);
+ InitPropSheetPage(&psp[0], IDD_PROPPAGEGENERAL, (DLGPROC) GeneralPageProc);
+ InitPropSheetPage(&psp[1], IDD_PROPPAGECOMPUTER, (DLGPROC) ComputerPageProc);
+ InitPropSheetPage(&psp[2], IDD_PROPPAGEHARDWARE, (DLGPROC) HardwarePageProc);
+ InitPropSheetPage(&psp[3], IDD_PROPPAGEUSERPROFILE, (DLGPROC)
UserProfilePageProc);
+ InitPropSheetPage(&psp[4], IDD_PROPPAGEADVANCED, (DLGPROC) AdvancedPageProc);
return (LONG)(PropertySheet(&psh) != -1);
}
@@ -129,7 +130,8 @@
LPARAM lParam2)
{
int i = (int)lParam1;
-
+ UNREFERENCED_PARAMETER(hwndCPl)
+
switch(uMsg)
{
case CPL_INIT:
@@ -165,6 +167,7 @@
DWORD dwReason,
LPVOID lpvReserved)
{
+ UNREFERENCED_PARAMETER(lpvReserved)
switch(dwReason)
{
case DLL_PROCESS_ATTACH:
Modified: trunk/reactos/dll/cpl/sysdm/userprofile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/userprofile.…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/userprofile.c (original)
+++ trunk/reactos/dll/cpl/sysdm/userprofile.c Sat Jun 24 01:19:01 2006
@@ -39,6 +39,8 @@
LPARAM lParam
)
{
+ UNREFERENCED_PARAMETER(lParam)
+ UNREFERENCED_PARAMETER(wParam)
switch(uMsg)
{
case WM_INITDIALOG:
Modified: trunk/reactos/dll/cpl/sysdm/virtmem.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/virtmem.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/virtmem.c (original)
+++ trunk/reactos/dll/cpl/sysdm/virtmem.c Sat Jun 24 01:19:01 2006
@@ -14,6 +14,7 @@
WPARAM wParam,
LPARAM lParam)
{
+ UNREFERENCED_PARAMETER(lParam)
switch (uMsg)
{
case WM_INITDIALOG:
Modified: trunk/reactos/dll/cpl/timedate/dateandtime.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/timedate/dateandti…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/dateandtime.c (original)
+++ trunk/reactos/dll/cpl/timedate/dateandtime.c Sat Jun 24 01:19:01 2006
@@ -309,9 +309,9 @@
{
ChangeMonthCalDate(GetDlgItem(hwndDlg,
IDC_MONTHCALENDAR),
- -1,
+ (WORD) -1,
GetCBSelectedMonth((HWND)lParam),
- -1);
+ (WORD) -1);
}
}
break;
@@ -341,14 +341,14 @@
{
short wYear;
LPNMUPDOWN updown = (LPNMUPDOWN) lpnm;
- wYear = SendMessage(GetDlgItem(hwndDlg, IDC_YEAR),
UDM_GETPOS, 0, 0);
+ wYear = (short) SendMessage(GetDlgItem(hwndDlg, IDC_YEAR),
UDM_GETPOS, 0, 0);
/* Enable the 'Apply' button */
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
ChangeMonthCalDate(GetDlgItem(hwndDlg,
IDC_MONTHCALENDAR),
- -1,
- -1,
- wYear + updown->iDelta);
+ (WORD) -1,
+ (WORD) -1,
+ (WORD) (wYear + updown->iDelta));
}
break;
}
Modified: trunk/reactos/dll/cpl/timedate/timedate.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/timedate/timedate.…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/timedate.c (original)
+++ trunk/reactos/dll/cpl/timedate/timedate.c Sat Jun 24 01:19:01 2006
@@ -84,9 +84,9 @@
psh.nStartPage = 0;
psh.ppsp = psp;
- InitPropSheetPage(&psp[0], IDD_DATETIMEPAGE, DateTimePageProc);
- InitPropSheetPage(&psp[1], IDD_TIMEZONEPAGE, TimeZonePageProc);
- InitPropSheetPage(&psp[2], IDD_INETTIMEPAGE, InetTimePageProc);
+ InitPropSheetPage(&psp[0], IDD_DATETIMEPAGE, (DLGPROC) DateTimePageProc);
+ InitPropSheetPage(&psp[1], IDD_TIMEZONEPAGE, (DLGPROC) TimeZonePageProc);
+ InitPropSheetPage(&psp[2], IDD_INETTIMEPAGE, (DLGPROC) InetTimePageProc);
Ret = (LONG)(PropertySheet(&psh) != -1);
Modified: trunk/reactos/dll/cpl/timedate/timezone.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/timedate/timezone.…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/timezone.c (original)
+++ trunk/reactos/dll/cpl/timedate/timezone.c Sat Jun 24 01:19:01 2006
@@ -279,7 +279,7 @@
DWORD dwIndex;
DWORD i;
- dwIndex = SendMessage(hwnd,
+ dwIndex = (DWORD) SendMessage(hwnd,
CB_GETCURSEL,
0,
0);