Avoid a crash if the dialog style is missing.

This commit is contained in:
Mike McCormack 2004-01-02 20:12:25 +00:00 committed by Alexandre Julliard
parent 1694844d2b
commit 06113289f9
1 changed files with 1 additions and 0 deletions

View File

@ -829,6 +829,7 @@ dialog : tDIALOG loadmemopts expr ',' expr ',' expr ',' expr dlg_attributes
$$ = $10;
if(!$$->gotstyle)
{
$$->style = new_style(0,0);
$$->style->or_mask = WS_POPUP;
$$->gotstyle = TRUE;
}