msi: Remove the font when setting a control's text.

This commit is contained in:
Mike McCormack 2006-01-11 12:12:16 +01:00 committed by Alexandre Julliard
parent 823ba55aca
commit 891df89ee7
1 changed files with 5 additions and 2 deletions

View File

@ -459,7 +459,8 @@ void msi_dialog_handle_event( msi_dialog* dialog, LPCWSTR control,
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* dialog, LPCWSTR control,
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 );
}