mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 07:58:22 +08:00
Fix compressed flag not being applied to the items inside GZip and Zlib GUIDed sections
This commit is contained in:
parent
fa5d744aac
commit
507f884635
@ -135,6 +135,7 @@ typedef ptrdiff_t INTN;
|
|||||||
#define COMPRESSION_ALGORITHM_LZMA_INTEL_LEGACY 6
|
#define COMPRESSION_ALGORITHM_LZMA_INTEL_LEGACY 6
|
||||||
#define COMPRESSION_ALGORITHM_LZMAF86 7
|
#define COMPRESSION_ALGORITHM_LZMAF86 7
|
||||||
#define COMPRESSION_ALGORITHM_GZIP 8
|
#define COMPRESSION_ALGORITHM_GZIP 8
|
||||||
|
#define COMPRESSION_ALGORITHM_ZLIB 9
|
||||||
|
|
||||||
|
|
||||||
// Item create modes
|
// Item create modes
|
||||||
|
@ -2905,6 +2905,7 @@ USTATUS FfsParser::parseGuidedSectionBody(const UModelIndex & index)
|
|||||||
return U_SUCCESS;
|
return U_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
algorithm = COMPRESSION_ALGORITHM_GZIP;
|
||||||
info += UString("\nCompression algorithm: GZip");
|
info += UString("\nCompression algorithm: GZip");
|
||||||
info += usprintf("\nDecompressed size: %Xh (%u)", (UINT32)processed.size(), (UINT32)processed.size());
|
info += usprintf("\nDecompressed size: %Xh (%u)", (UINT32)processed.size(), (UINT32)processed.size());
|
||||||
}
|
}
|
||||||
@ -2916,6 +2917,7 @@ USTATUS FfsParser::parseGuidedSectionBody(const UModelIndex & index)
|
|||||||
return U_SUCCESS;
|
return U_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
algorithm = COMPRESSION_ALGORITHM_ZLIB;
|
||||||
info += UString("\nCompression algorithm: Zlib");
|
info += UString("\nCompression algorithm: Zlib");
|
||||||
info += usprintf("\nDecompressed size: %Xh (%u)", (UINT32)processed.size(), (UINT32)processed.size());
|
info += usprintf("\nDecompressed size: %Xh (%u)", (UINT32)processed.size(), (UINT32)processed.size());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user