msi: Allocate a buffer in WCHARs not CHARs.
This commit is contained in:
parent
cae37b18fd
commit
8a38d3038c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue