[7/7] msi: Avoid accessing uninitialized memory.
Hans Leidekker
hans at codeweavers.com
Wed Oct 21 06:20:04 CDT 2009
Found by valgrind.
---
dlls/msi/action.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index b9b8199..a6af7cc 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -5037,7 +5037,7 @@ static UINT ITERATE_WriteEnvironmentString( MSIRECORD *rec, LPVOID param )
goto done;
}
- size = (lstrlenW(value) + 1 + size) * sizeof(WCHAR);
+ size += (lstrlenW(value) + 1) * sizeof(WCHAR);
newval = msi_alloc(size);
ptr = newval;
if (!newval)
--
1.6.3.3
More information about the wine-patches
mailing list