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

This commit is contained in:
James Hawkins 2006-11-08 11:40:25 -08:00 committed by Alexandre Julliard
parent df51cf5c83
commit 9d899129bf
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}