msi [2/2]: NULL-terminate dst on error
James Hawkins
truiken at gmail.com
Mon Oct 9 16:06:53 CDT 2006
Hi,
Changelog:
* NULL-terminate dst on error.
dlls/msi/appsearch.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
--
James Hawkins
-------------- next part --------------
diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c
index e36d20c..622b97c 100644
--- a/dlls/msi/appsearch.c
+++ b/dlls/msi/appsearch.c
@@ -530,7 +530,10 @@ static void ACTION_ExpandAnyPath(MSIPACK
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, '|')))
--
1.4.2.1
More information about the wine-patches
mailing list