Commit 891df89e authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

parent 823ba55a
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment