msi: Fix ComputerName property.

This commit is contained in:
Daniel Jelinski 2013-05-03 20:55:13 +02:00 committed by Alexandre Julliard
parent 33d62f3f17
commit ce6a037abc

View File

@ -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 );
}
}