msi: NULL-terminate dst on error.
This commit is contained in:
parent
42b05ea311
commit
915898fbb7
|
@ -530,7 +530,10 @@ static void ACTION_ExpandAnyPath(MSIPACKAGE *package, WCHAR *src, WCHAR *dst,
|
|||
size_t copied = 0;
|
||||
|
||||
if (!src || !dst || !len)
|
||||
{
|
||||
if (dst) *dst = '\0';
|
||||
return;
|
||||
}
|
||||
|
||||
/* Ignore the short portion of the path, don't think we can use it anyway */
|
||||
if ((ptr = strchrW(src, '|')))
|
||||
|
|
Loading…
Reference in New Issue