msi: Make room for the new row in STREAMS_insert_row.

This commit is contained in:
Hans Leidekker 2010-02-04 10:02:26 +01:00 committed by Alexandre Julliard
parent c1940c1c5f
commit 24dd10c6b0
1 changed files with 6 additions and 1 deletions

View File

@ -218,6 +218,7 @@ done:
static UINT STREAMS_insert_row(struct tagMSIVIEW *view, MSIRECORD *rec, UINT row, BOOL temporary)
{
MSISTREAMSVIEW *sv = (MSISTREAMSVIEW *)view;
UINT i;
TRACE("(%p, %p, %d, %d)\n", view, rec, row, temporary);
@ -227,7 +228,11 @@ static UINT STREAMS_insert_row(struct tagMSIVIEW *view, MSIRECORD *rec, UINT row
if (row == -1)
row = sv->num_rows - 1;
/* FIXME have to readjust rows */
/* shift the rows to make room for the new row */
for (i = sv->num_rows - 1; i > row; i--)
{
sv->streams[i] = sv->streams[i - 1];
}
return STREAMS_set_row(view, row, rec, 0);
}