msi: Avoid shift overflow in msi_view_get_row.

Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gerald Pfeifer 2015-10-19 22:05:53 +02:00 committed by Alexandre Julliard
parent e27a4b5e1b
commit 40922ccd4f
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ UINT msi_view_get_row(MSIDATABASE *db, MSIVIEW *view, UINT row, MSIRECORD **rec)
if ((type & MSI_DATASIZEMASK) == 2)
MSI_RecordSetInteger(*rec, i, ival - (1<<15));
else
MSI_RecordSetInteger(*rec, i, ival - (1<<31));
MSI_RecordSetInteger(*rec, i, ival - (1u<<31));
}
}