Commit 6a0a0d2a authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msi: Fix use after free error in TransformView_set_row.

parent 25d6abb9
......@@ -2341,7 +2341,7 @@ static UINT TransformView_set_row( MSIVIEW *view, UINT row, MSIRECORD *rec, UINT
L"INSERT INTO `_TransformView` (`Table`, `Column`, `Row`, `Data`, `Current`) VALUES ('";
MSITABLEVIEW *tv = (MSITABLEVIEW*)view;
WCHAR buf[256], *query = buf;
WCHAR buf[256], *query;
MSIRECORD *old_rec;
MSIQUERY *q;
WCHAR *key;
......@@ -2409,6 +2409,10 @@ static UINT TransformView_set_row( MSIVIEW *view, UINT row, MSIRECORD *rec, UINT
return ERROR_OUTOFMEMORY;
}
}
else
{
query = buf;
}
memcpy( query, query_pfx, p * sizeof(WCHAR) );
len = wcslen( tv->name );
......
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