Fix #586: Sandboxie crash when saving Sandboxie-Classic Sandbox appearance settings.

This commit is contained in:
typpos 2021-02-19 15:04:01 +11:00
parent 1176d6e384
commit 76d7f6dbc0
1 changed files with 1 additions and 1 deletions

View File

@ -966,7 +966,7 @@ void CBoxPage::Appearance_OnOK(CBox &box)
BOOL enable = (pCheckBox3->GetCheck() == BST_CHECKED ? TRUE : FALSE);
BOOL title = (pCheckBox4->GetCheck() == BST_CHECKED ? TRUE : FALSE);
CString str;
GetDlgItem(ID_MIGRATE_KB)->GetWindowText(str);
GetDlgItem(ID_BORDER_WIDTH)->GetWindowText(str);
int width = _wtoi(str);
ok = box.SetBorder(enable, Appearance_BorderColor, title, width);
}