msi [1/2]: Add missing sizeof(WCHAR) multiplier
James Hawkins
truiken at gmail.com
Mon Oct 9 15:53:35 CDT 2006
Hi,
This fixes bug 4415. http://bugs.winehq.org/show_bug.cgi?id=4415
Changelog:
* Add missing sizeof(WCHAR) multiplier.
dlls/msi/appsearch.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
--
James Hawkins
-------------- next part --------------
diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c
index dc271a4..e36d20c 100644
--- a/dlls/msi/appsearch.c
+++ b/dlls/msi/appsearch.c
@@ -915,7 +915,7 @@ static UINT ACTION_AppSearchDr(MSIPACKAG
msi_free(path);
if (parent)
{
- path = msi_alloc(strlenW(parent) + strlenW(expanded) + 1);
+ path = msi_alloc((strlenW(parent) + strlenW(expanded) + 1) * sizeof(WCHAR));
if (!path)
goto end;
strcpyW(path, parent);
--
1.4.2.1
More information about the wine-patches
mailing list