Commit 9d899129 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Only add text to the scroll control if text is provided.

parent df51cf5c
......@@ -920,6 +920,7 @@ static UINT msi_dialog_scrolltext_control( msi_dialog *dialog, MSIRECORD *rec )
struct msi_scrolltext_info *info;
msi_control *control;
HMODULE hRichedit;
LPCWSTR text;
DWORD style;
info = msi_alloc( sizeof *info );
......@@ -949,7 +950,9 @@ static UINT msi_dialog_scrolltext_control( msi_dialog *dialog, MSIRECORD *rec )
SetPropW( control->hwnd, szButtonData, info );
/* add the text into the richedit */
msi_scrolltext_add_text( control, MSI_RecordGetString( rec, 10 ) );
text = MSI_RecordGetString( rec, 10 );
if (text)
msi_scrolltext_add_text( control, text );
return ERROR_SUCCESS;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment