mirror of
https://github.com/reactos/wine.git
synced 2025-02-28 00:39:06 +00:00
msi: Avoid accessing uninitialized memory.
Found by valgrind.
This commit is contained in:
parent
ec0a0b372e
commit
a15e6cbb1a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user