mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Fix LZMA properties not being written to image.
This commit is contained in:
@@ -199,6 +199,8 @@ static int32_t write_cached_secondary_ddt(aaruformatContext *ctx)
|
|||||||
// Write header
|
// Write header
|
||||||
if(fwrite(&ddt_header, sizeof(DdtHeader2), 1, ctx->imageStream) == 1)
|
if(fwrite(&ddt_header, sizeof(DdtHeader2), 1, ctx->imageStream) == 1)
|
||||||
{
|
{
|
||||||
|
if(ddt_header.compression == Lzma) fwrite(lzma_properties, LZMA_PROPERTIES_LENGTH, 1, ctx->imageStream);
|
||||||
|
|
||||||
// Write data
|
// Write data
|
||||||
if(fwrite(buffer, ddt_header.cmpLength, 1, ctx->imageStream) == 1)
|
if(fwrite(buffer, ddt_header.cmpLength, 1, ctx->imageStream) == 1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user