Module: wine Branch: refs/heads/master Commit: 891df89ee758ae60d2a17d853ae26859f4cc420e URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=891df89ee758ae60d2a17d85...
Author: Mike McCormack mike@codeweavers.com Date: Wed Jan 11 12:12:16 2006 +0100
msi: Remove the font when setting a control's text.
---
dlls/msi/dialog.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index d0bf75b..62be130 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -459,7 +459,8 @@ void msi_dialog_handle_event( msi_dialog LPCWSTR attribute, MSIRECORD *rec ) { msi_control* ctrl; - LPCWSTR text; + LPCWSTR font_text, text = NULL; + LPWSTR font;
ctrl = msi_dialog_find_control( dialog, control ); if (!ctrl) @@ -469,8 +470,10 @@ void msi_dialog_handle_event( msi_dialog ERR("Attribute %s\n", debugstr_w(attribute)); return; } - text = MSI_RecordGetString( rec , 1 ); + font_text = MSI_RecordGetString( rec , 1 ); + font = msi_dialog_get_style( font_text, &text ); SetWindowTextW( ctrl->hwnd, text ); + msi_free( font ); msi_dialog_check_messages( NULL ); }