Index: cgpt/cmd_find.c |
diff --git a/cgpt/cmd_find.c b/cgpt/cmd_find.c |
index 055777e3410748b72a7b01e683243b42fed17ccf..896119a7cca778d5438e1939a2d3666a8b958a51 100644 |
--- a/cgpt/cmd_find.c |
+++ b/cgpt/cmd_find.c |
@@ -177,8 +177,8 @@ static int do_search(char *filename) { |
continue; |
int found = 0; |
- if ((set_unique && !memcmp(&unique_guid, &entry->unique, sizeof(Guid))) || |
- (set_type && !memcmp(&type_guid, &entry->type, sizeof(Guid)))) { |
+ if ((set_unique && GuidEqual(&unique_guid, &entry->unique)) || |
+ (set_type && GuidEqual(&type_guid, &entry->type))) { |
found = 1; |
} else if (set_label) { |
if (CGPT_OK != UTF16ToUTF8(entry->name, |