Commit 3a5178e9 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Don't update a table entry when applying a transform if the string value is the same.

parent 9d71238a
......@@ -1323,6 +1323,16 @@ static UINT TABLE_set_row( struct tagMSIVIEW *view, UINT row, MSIRECORD *rec, UI
else if ( tv->columns[i].type & MSITYPE_STRING )
{
LPCWSTR sval = MSI_RecordGetString( rec, i + 1 );
UINT ival, x;
r = msi_string2idW(tv->db->strings, sval, &ival);
if (r == ERROR_SUCCESS)
{
TABLE_fetch_int(&tv->view, row, i + 1, &x);
if (ival == x)
continue;
}
val = msi_addstringW( tv->db->strings, 0, sval, -1, 1,
persistent ? StringPersistent : StringNonPersistent );
}
......
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