Commit a15e6cbb authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Avoid accessing uninitialized memory.

Found by valgrind.
parent ec0a0b37
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment