James Hawkins : msi: NULL-terminate dst on error.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Oct 10 06:50:35 CDT 2006
Module: wine
Branch: master
Commit: 915898fbb75b8f2f945f4934d3b67496d3073558
URL: http://source.winehq.org/git/wine.git/?a=commit;h=915898fbb75b8f2f945f4934d3b67496d3073558
Author: James Hawkins <truiken at gmail.com>
Date: Mon Oct 9 14:06:53 2006 -0700
msi: NULL-terminate dst on error.
---
dlls/msi/appsearch.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
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, '|')))
More information about the wine-cvs
mailing list