Commit 915898fb authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: NULL-terminate dst on error.

parent 42b05ea3
...@@ -530,7 +530,10 @@ static void ACTION_ExpandAnyPath(MSIPACKAGE *package, WCHAR *src, WCHAR *dst, ...@@ -530,7 +530,10 @@ static void ACTION_ExpandAnyPath(MSIPACKAGE *package, WCHAR *src, WCHAR *dst,
size_t copied = 0; size_t copied = 0;
if (!src || !dst || !len) if (!src || !dst || !len)
{
if (dst) *dst = '\0';
return; return;
}
/* Ignore the short portion of the path, don't think we can use it anyway */ /* Ignore the short portion of the path, don't think we can use it anyway */
if ((ptr = strchrW(src, '|'))) if ((ptr = strchrW(src, '|')))
......
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