diff --git a/dlls/msi/package.c b/dlls/msi/package.c index f7cc90886dd..74f19ac08a8 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -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 ); } }