wrc: Don't crash when parsing COMBOBOX element without style.

Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Fabian Maurer 2018-07-20 17:33:12 +02:00 committed by Alexandre Julliard
parent a9ac425a90
commit c0dfdbcf7b
1 changed files with 1 additions and 1 deletions

View File

@ -1969,7 +1969,7 @@ static control_t *ins_ctrl(int type, int special_style, control_t *ctrl, control
defaultstyle |= LBS_NOTIFY | WS_BORDER; defaultstyle |= LBS_NOTIFY | WS_BORDER;
break; break;
case CT_COMBOBOX: case CT_COMBOBOX:
if (!(ctrl->style->or_mask & (CBS_SIMPLE | CBS_DROPDOWN | CBS_DROPDOWNLIST))) if (!ctrl->gotstyle || !(ctrl->style->or_mask & (CBS_SIMPLE | CBS_DROPDOWN | CBS_DROPDOWNLIST)))
defaultstyle |= CBS_SIMPLE; defaultstyle |= CBS_SIMPLE;
break; break;
case CT_STATIC: case CT_STATIC: