If the checkbox IDC_TRAYICON is not present in the dialog,
do not attempt to use its value as a setting for
Config_SetTrayIconFlag().
FIXES 128591
Change-Id: Iebee8198ec25e1841f6fa49b9850a16329f2cbdd
Reviewed-on: http://gerrit.openafs.org/3331
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
BOOL fLogonAuthent = IsDlgButtonChecked (hDlg, IDC_LOGON);
if (fLogonAuthent != g.Configuration.fLogonAuthent)
{
- SetBitLogonOption(fLogonAuthent,LOGON_OPTION_INTEGRATED);
+ SetBitLogonOption(fLogonAuthent,LOGON_OPTION_INTEGRATED);
g.Configuration.fLogonAuthent = fLogonAuthent;
}
- Config_SetTrayIconFlag (IsDlgButtonChecked (hDlg, IDC_TRAYICON));
+ if (GetDlgItem(hDlg, IDC_TRAYICON) != NULL)
+ Config_SetTrayIconFlag (IsDlgButtonChecked(hDlg, IDC_TRAYICON));
if (g.fIsWinNT)
{