From b191c3daef2b21544ac5f3a6bc6b3779aaabbeaa Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Wed, 2 Nov 2005 10:55:13 +0000 Subject: [PATCH] Handle msi component identifiers without a feature guid. --- tools/winedump/lnk.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/winedump/lnk.c b/tools/winedump/lnk.c index c3c05bd110e..b60fb6698e1 100644 --- a/tools/winedump/lnk.c +++ b/tools/winedump/lnk.c @@ -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 );