msi: Don't add text to the scrollable text control twice.
This commit is contained in:
parent
56aa5d8a5f
commit
f222582af6
|
@ -783,12 +783,13 @@ static msi_control *msi_dialog_add_control( msi_dialog *dialog,
|
||||||
MSIRECORD *rec, LPCWSTR szCls, DWORD style )
|
MSIRECORD *rec, LPCWSTR szCls, DWORD style )
|
||||||
{
|
{
|
||||||
DWORD attributes;
|
DWORD attributes;
|
||||||
LPCWSTR text, name;
|
const WCHAR *text = NULL, *name, *control_type;
|
||||||
DWORD exstyle = 0;
|
DWORD exstyle = 0;
|
||||||
|
|
||||||
name = MSI_RecordGetString( rec, 2 );
|
name = MSI_RecordGetString( rec, 2 );
|
||||||
|
control_type = MSI_RecordGetString( rec, 3 );
|
||||||
attributes = MSI_RecordGetInteger( rec, 8 );
|
attributes = MSI_RecordGetInteger( rec, 8 );
|
||||||
text = MSI_RecordGetString( rec, 10 );
|
if (strcmpW( control_type, szScrollableText )) text = MSI_RecordGetString( rec, 10 );
|
||||||
|
|
||||||
TRACE("%s, %s, %08x, %s, %08x\n", debugstr_w(szCls), debugstr_w(name),
|
TRACE("%s, %s, %08x, %s, %08x\n", debugstr_w(szCls), debugstr_w(name),
|
||||||
attributes, debugstr_w(text), style);
|
attributes, debugstr_w(text), style);
|
||||||
|
|
Loading…
Reference in New Issue