Handle msi component identifiers without a feature guid.

This commit is contained in:
Mike McCormack 2005-11-02 10:55:13 +00:00 committed by Alexandre Julliard
parent a182e093b0
commit b191c3daef
1 changed files with 7 additions and 3 deletions

View File

@ -363,18 +363,22 @@ static int dump_advertise_info(int fd, const char *type)
comp = &avt->bufA[20];
feat = strchr(comp,'>');
if (!feat)
feat = strchr(comp,'<');
if (feat)
{
memcpy( comp_str, comp, feat - comp );
comp_str[feat-comp] = 0;
}
else
strcpy( prod_str, "?" );
{
strcpy( comp_str, "?" );
}
if (feat && base85_to_guid( &feat[1], &guid ))
if (feat && feat[0] == '>' && base85_to_guid( &feat[1], &guid ))
guid_to_string( &guid, feat_str );
else
strcpy( prod_str, "?" );
feat_str[0] = 0;
printf(" product: %s\n", prod_str);
printf(" component: %s\n", comp_str );