Hans Leidekker : msi: Fix an invalid memory access (valgrind).

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 21 09:57:27 CDT 2015


Module: wine
Branch: master
Commit: e6ce4de3930018b95bddbe8d259cbbaa1309d1f0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e6ce4de3930018b95bddbe8d259cbbaa1309d1f0

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Apr 21 11:20:24 2015 +0200

msi: Fix an invalid memory access (valgrind).

---

 dlls/msi/table.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msi/table.c b/dlls/msi/table.c
index 256034b..700a61a 100644
--- a/dlls/msi/table.c
+++ b/dlls/msi/table.c
@@ -899,7 +899,7 @@ static UINT save_table( MSIDATABASE *db, const MSITABLE *t, UINT bytes_per_strre
     }
 
     rawsize = 0;
-    for (i = 0; i < t->row_count; i++)
+    for (i = 0; i < row_count; i++)
     {
         UINT ofs = 0, ofs_mem = 0;
 




More information about the wine-cvs mailing list