diff --git a/programs/wineconsole/curses.c b/programs/wineconsole/curses.c index 4c75a6fb35e..735ec9768a0 100644 --- a/programs/wineconsole/curses.c +++ b/programs/wineconsole/curses.c @@ -300,7 +300,7 @@ static void WCCURSES_ShapeCursor(struct inner_data* data, int size, int vis, BOO { /* we can't do much about the size... */ data->curcfg.cursor_size = size; - data->curcfg.cursor_visible = vis ? TRUE : FALSE; + data->curcfg.cursor_visible = vis != 0; WCCURSES_PosCursor(data); } diff --git a/programs/wineconsole/dialog.c b/programs/wineconsole/dialog.c index 831b2a9e7c7..d69432e2d99 100644 --- a/programs/wineconsole/dialog.c +++ b/programs/wineconsole/dialog.c @@ -118,7 +118,7 @@ static INT_PTR WINAPI WCUSER_OptionDlgProc(HWND hDlg, UINT msg, WPARAM wParam, L val = GetDlgItemInt(hDlg, IDC_OPT_HIST_SIZE, &done, FALSE); if (done) di->config.history_size = val; - val = (IsDlgButtonChecked(hDlg, IDC_OPT_HIST_NODOUBLE) & BST_CHECKED) ? TRUE : FALSE; + val = (IsDlgButtonChecked(hDlg, IDC_OPT_HIST_NODOUBLE) & BST_CHECKED) != 0; di->config.history_nodup = val; val = 0; @@ -126,7 +126,7 @@ static INT_PTR WINAPI WCUSER_OptionDlgProc(HWND hDlg, UINT msg, WPARAM wParam, L if (IsDlgButtonChecked(hDlg, IDC_OPT_CONF_SHIFT) & BST_CHECKED) val |= MK_SHIFT; di->config.menu_mask = val; - val = (IsDlgButtonChecked(hDlg, IDC_OPT_QUICK_EDIT) & BST_CHECKED) ? TRUE : FALSE; + val = (IsDlgButtonChecked(hDlg, IDC_OPT_QUICK_EDIT) & BST_CHECKED) != 0; di->config.quick_edit = val; SetWindowLongPtrW(hDlg, DWLP_MSGRESULT, PSNRET_NOERROR); diff --git a/programs/wineconsole/user.c b/programs/wineconsole/user.c index 8a07e3ab1b9..9b8ad153e51 100644 --- a/programs/wineconsole/user.c +++ b/programs/wineconsole/user.c @@ -191,7 +191,7 @@ static void WCUSER_ShapeCursor(struct inner_data* data, int size, int vis, BOOL data->curcfg.cursor_visible = -1; } - vis = (vis) ? TRUE : FALSE; + vis = vis != 0; if (force || vis != data->curcfg.cursor_visible) { data->curcfg.cursor_visible = vis;