James Hawkins : msi: Initialize the size parameter.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 27 07:34:43 CDT 2007


Module: wine
Branch: master
Commit: fb45206ed7f99dff600f220b53d7831f375b059c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fb45206ed7f99dff600f220b53d7831f375b059c

Author: James Hawkins <truiken at gmail.com>
Date:   Thu Jul 26 17:34:10 2007 -0700

msi: Initialize the size parameter.

---

 dlls/msi/custom.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c
index cc08c29..54efc85 100644
--- a/dlls/msi/custom.c
+++ b/dlls/msi/custom.c
@@ -842,6 +842,7 @@ static UINT HANDLE_CustomType23(MSIPACKAGE *package, LPCWSTR source,
 
     static const WCHAR backslash[] = {'\\',0};
 
+    size = MAX_PATH;
     MSI_GetPropertyW(package, cszSourceDir, package_path, &size);
     lstrcatW(package_path, backslash);
     lstrcatW(package_path, source);




More information about the wine-cvs mailing list