msi: Only add text to the scroll control if text is provided.
This commit is contained in:
parent
df51cf5c83
commit
9d899129bf
@ -920,6 +920,7 @@ static UINT msi_dialog_scrolltext_control( msi_dialog *dialog, MSIRECORD *rec )
|
|||||||
struct msi_scrolltext_info *info;
|
struct msi_scrolltext_info *info;
|
||||||
msi_control *control;
|
msi_control *control;
|
||||||
HMODULE hRichedit;
|
HMODULE hRichedit;
|
||||||
|
LPCWSTR text;
|
||||||
DWORD style;
|
DWORD style;
|
||||||
|
|
||||||
info = msi_alloc( sizeof *info );
|
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 );
|
SetPropW( control->hwnd, szButtonData, info );
|
||||||
|
|
||||||
/* add the text into the richedit */
|
/* 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;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user