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:
parent
e27a4b5e1b
commit
40922ccd4f
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue