Module: wine Branch: master Commit: 0fe1b3671624ceb077598eac8f7deaa24469a671 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0fe1b3671624ceb077598eac8f...
Author: James Hawkins truiken@gmail.com Date: Tue Oct 3 15:00:19 2006 -0700
msi: Empty the window text if no text is provided.
---
dlls/msi/dialog.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index b4e9ce3..f0c9d7c 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -536,6 +536,8 @@ void msi_dialog_handle_event( msi_dialog LPCWSTR font_text, text = NULL; LPWSTR font;
+ static const WCHAR empty[] = {0}; + ctrl = msi_dialog_find_control( dialog, control ); if (!ctrl) return; @@ -543,6 +545,7 @@ void msi_dialog_handle_event( msi_dialog { font_text = MSI_RecordGetString( rec , 1 ); font = msi_dialog_get_style( font_text, &text ); + if (!text) text = empty; SetWindowTextW( ctrl->hwnd, text ); msi_free( font ); msi_dialog_check_messages( NULL );