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

View File

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