James Hawkins : msi: Add missing sizeof(WCHAR) multiplier.
Module: wine Branch: master Commit: 42b05ea311514414198293b609b96435877739ba URL: http://source.winehq.org/git/wine.git/?a=commit;h=42b05ea311514414198293b609... Author: James Hawkins <truiken(a)gmail.com> Date: Mon Oct 9 13:53:35 2006 -0700 msi: Add missing sizeof(WCHAR) multiplier. --- dlls/msi/appsearch.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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);
participants (1)
-
Alexandre Julliard