msi: Add missing sizeof(WCHAR) multiplier.

This commit is contained in:
James Hawkins 2006-10-09 13:53:35 -07:00 committed by Alexandre Julliard
parent 185526d35e
commit 42b05ea311
1 changed files with 1 additions and 1 deletions

View File

@ -915,7 +915,7 @@ static UINT ACTION_AppSearchDr(MSIPACKAGE *package, LPWSTR *appValue,
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);