James Hawkins : msi: Only add text to the scroll control if text is provided.
Module: wine Branch: master Commit: 9d899129bf696afabf76ef5ba6f24fcf582abff7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9d899129bf696afabf76ef5ba6... Author: James Hawkins <truiken(a)gmail.com> Date: Wed Nov 8 11:40:25 2006 -0800 msi: Only add text to the scroll control if text is provided. --- dlls/msi/dialog.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index 407cb29..d928edc 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -920,6 +920,7 @@ static UINT msi_dialog_scrolltext_contro 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_contro 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; }
participants (1)
-
Alexandre Julliard