msi: Fix ComputerName property.
This commit is contained in:
parent
33d62f3f17
commit
ce6a037abc
|
@ -1020,7 +1020,7 @@ static VOID set_installer_properties(MSIPACKAGE *package)
|
|||
if ((computername = msi_alloc( len * sizeof(WCHAR) )))
|
||||
{
|
||||
if (GetComputerNameW( computername, &len ))
|
||||
msi_set_property( package->db, szComputerName, computername, len - 1 );
|
||||
msi_set_property( package->db, szComputerName, computername, len );
|
||||
msi_free( computername );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue