[v2] msi: Avoid shift overflow in msi_view_get_row.

Gerald Pfeifer gerald at pfeifer.com
Mon Oct 19 15:05:53 CDT 2015


Now with...

Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
---
 dlls/msi/msiquery.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msi/msiquery.c b/dlls/msi/msiquery.c
index 467cd49..d73e5fe 100644
--- a/dlls/msi/msiquery.c
+++ b/dlls/msi/msiquery.c
@@ -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));
         }
     }
 
-- 
2.6.1



More information about the wine-patches mailing list