summaryrefslogtreecommitdiff
path: root/updater
diff options
context:
space:
mode:
Diffstat (limited to 'updater')
-rw-r--r--updater/options.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/updater/options.cpp b/updater/options.cpp
index aa51a07..4b6115e 100644
--- a/updater/options.cpp
+++ b/updater/options.cpp
@@ -57,7 +57,7 @@ static int EnumerateFuncFillList(char *szComponentName, UpdateOptions *update_op
// Initialize LVITEM members that are common to all
// items.
lvI.mask = LVIF_TEXT | LVIF_PARAM;
- lvI.lParam = (update_options->enabled ? 1 : 0) + (update_options->use_beta ? 2 : 0) + (update_options->fixed ? 4 : 0);
+ lvI.lParam = (update_options->enabled ? 1 : 0) | (update_options->use_beta ? 2 : 0) | (update_options->fixed ? 4 : 0);
lvI.iSubItem = 0;
lvI.pszText = (temp_str = GetTString(szComponentName));
@@ -375,8 +375,6 @@ static INT_PTR CALLBACK DlgProcOpts1(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR
int OptInit(WPARAM wParam,LPARAM lParam)
{
- DWORD mirVir = (DWORD)CallService(MS_SYSTEM_GETVERSION, 0, 0);
-
OPTIONSDIALOGPAGE odp = { 0 };
odp.cbSize = sizeof(odp);
odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR;
@@ -488,7 +486,7 @@ void LoadOptions(void)
}
}
-void SaveOptions()
+void SaveOptions(void)
{
DBWriteContactSettingByte(0, MODULE, "CheckOnStartup", options.check_on_startup ? 1 : 0);
DBWriteContactSettingByte(0, MODULE, "CheckOnce", options.check_once ? 1 : 0);