diff --git a/dlls/msi/package.c b/dlls/msi/package.c index 4d762409be8..b78910df5d1 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -140,7 +140,7 @@ static UINT set_user_sid_prop( MSIPACKAGE *package ) LookupAccountNameW( NULL, user_name, NULL, &size, NULL, &dom_size, &use ); psid = msi_alloc( size ); - dom = msi_alloc( dom_size ); + dom = msi_alloc( dom_size*sizeof (WCHAR) ); if (!psid || !dom) { r = ERROR_OUTOFMEMORY;