msi: Fix handling of an empty language id list in msi_parse_summary.

This commit is contained in:
Hans Leidekker 2010-11-17 10:57:40 +01:00 committed by Alexandre Julliard
parent b07ea863d2
commit a74e025335
1 changed files with 7 additions and 2 deletions

View File

@ -1336,9 +1336,14 @@ static UINT msi_parse_summary( MSISUMMARYINFO *si, MSIPACKAGE *package )
msi_free( template );
return ERROR_INSTALL_PLATFORM_UNSUPPORTED;
}
p++;
if (!*p)
{
msi_free( template );
return ERROR_SUCCESS;
}
count = 1;
for (q = ++p; (q = strchrW( q, ',' )); q++) count++;
for (q = p; (q = strchrW( q, ',' )); q++) count++;
package->langids = msi_alloc( count * sizeof(LANGID) );
if (!package->langids)