From 915898fbb75b8f2f945f4934d3b67496d3073558 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Mon, 9 Oct 2006 14:06:53 -0700 Subject: [PATCH] msi: NULL-terminate dst on error. --- dlls/msi/appsearch.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index e36d20c41f8..622b97c4d6e 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -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, '|')))