Author: cwittich
Date: Sat Jun 24 00:01:20 2006
New Revision: 22545
URL:
http://svn.reactos.org/svn/reactos?rev=22545&view=rev
Log:
-fixed some warnings (msvc)
Modified:
trunk/reactos/dll/cpl/desk/appearance.c
trunk/reactos/dll/cpl/desk/background.c
trunk/reactos/dll/cpl/desk/desk.c
trunk/reactos/dll/cpl/desk/settings.c
Modified: trunk/reactos/dll/cpl/desk/appearance.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/appearance.c?…
==============================================================================
--- trunk/reactos/dll/cpl/desk/appearance.c (original)
+++ trunk/reactos/dll/cpl/desk/appearance.c Sat Jun 24 00:01:20 2006
@@ -15,6 +15,10 @@
WPARAM wParam,
LPARAM lParam)
{
+ UNREFERENCED_PARAMETER(lParam)
+ UNREFERENCED_PARAMETER(wParam)
+ UNREFERENCED_PARAMETER(hwndDlg)
+
switch(uMsg)
{
case WM_INITDIALOG:
Modified: trunk/reactos/dll/cpl/desk/background.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/background.c?…
==============================================================================
--- trunk/reactos/dll/cpl/desk/background.c (original)
+++ trunk/reactos/dll/cpl/desk/background.c Sat Jun 24 00:01:20 2006
@@ -302,6 +302,8 @@
BOOL CheckListBoxFilename(HWND list, TCHAR *filename)
{
+ UNREFERENCED_PARAMETER(filename)
+ UNREFERENCED_PARAMETER(list)
return FALSE;
}
@@ -571,7 +573,7 @@
{
if(command == CBN_SELCHANGE)
{
- g_placementSelection = SendMessage(g_hPlacementCombo,
CB_GETCURSEL, 0, 0);
+ g_placementSelection =
(int)SendMessage(g_hPlacementCombo, CB_GETCURSEL, 0, 0);
InvalidateRect(g_hBackgroundPreview, NULL, TRUE);
Modified: trunk/reactos/dll/cpl/desk/desk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/desk.c?rev=22…
==============================================================================
--- trunk/reactos/dll/cpl/desk/desk.c (original)
+++ trunk/reactos/dll/cpl/desk/desk.c Sat Jun 24 00:01:20 2006
@@ -49,6 +49,11 @@
PROPSHEETHEADER psh;
TCHAR Caption[1024];
+ UNREFERENCED_PARAMETER(lParam)
+ UNREFERENCED_PARAMETER(wParam)
+ UNREFERENCED_PARAMETER(uMsg)
+ UNREFERENCED_PARAMETER(hwnd)
+
LoadString(hApplet, IDS_CPLNAME, Caption, sizeof(Caption) / sizeof(TCHAR));
ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
@@ -62,10 +67,10 @@
psh.nStartPage = 0;
psh.ppsp = psp;
- InitPropSheetPage(&psp[0], IDD_BACKGROUND, BackgroundPageProc);
- InitPropSheetPage(&psp[1], IDD_SCREENSAVER, ScreenSaverPageProc);
- InitPropSheetPage(&psp[2], IDD_APPEARANCE, AppearancePageProc);
- InitPropSheetPage(&psp[3], IDD_SETTINGS, SettingsPageProc);
+ InitPropSheetPage(&psp[0], IDD_BACKGROUND, (DLGPROC) BackgroundPageProc);
+ InitPropSheetPage(&psp[1], IDD_SCREENSAVER, (DLGPROC) ScreenSaverPageProc);
+ InitPropSheetPage(&psp[2], IDD_APPEARANCE, (DLGPROC) AppearancePageProc);
+ InitPropSheetPage(&psp[3], IDD_SETTINGS, (DLGPROC) SettingsPageProc);
return (LONG)(PropertySheet(&psh) != -1);
}
Modified: trunk/reactos/dll/cpl/desk/settings.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/settings.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/desk/settings.c (original)
+++ trunk/reactos/dll/cpl/desk/settings.c Sat Jun 24 00:01:20 2006
@@ -69,7 +69,7 @@
}
}
if (LoadString(hApplet, (2900 +
CurrentDisplayDevice->CurrentSettings->dmBitsPerPel), Buffer, sizeof(Buffer) /
sizeof(TCHAR)))
- SendDlgItemMessage(hwndDlg, IDC_SETTINGS_BPP, CB_SELECTSTRING, -1, (LPARAM)Buffer);
+ SendDlgItemMessage(hwndDlg, IDC_SETTINGS_BPP, CB_SELECTSTRING, (WPARAM)-1,
(LPARAM)Buffer);
}
static PSETTINGS_ENTRY