From dccc3358863ad8075bbeb1fe0ff4abe92aa1cf70 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Fri, 8 Jun 2018 09:32:12 +0300 Subject: [PATCH] Fix subguid search in uefiextract --- UEFIExtract/ffsdumper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UEFIExtract/ffsdumper.cpp b/UEFIExtract/ffsdumper.cpp index 9399768..d15fff5 100644 --- a/UEFIExtract/ffsdumper.cpp +++ b/UEFIExtract/ffsdumper.cpp @@ -36,6 +36,8 @@ USTATUS FfsDumper::recursiveDump(const QModelIndex & index, const QString & path QDir dir; if (guid.isEmpty() || + (model->subtype(index) == EFI_SECTION_FREEFORM_SUBTYPE_GUID && + guidToUString(*(const EFI_GUID*)(model->header(index).constData() + sizeof(EFI_COMMON_SECTION_HEADER))) == guid) || guidToUString(*(const EFI_GUID*)model->header(index).constData()) == guid || guidToUString(*(const EFI_GUID*)model->header(model->findParentOfType(index, Types::File)).constData()) == guid) {