msi: NULL-terminate dst on error.

This commit is contained in:
James Hawkins 2006-10-09 14:06:53 -07:00 committed by Alexandre Julliard
parent 42b05ea311
commit 915898fbb7
1 changed files with 3 additions and 0 deletions

View File

@ -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, '|')))