dll: fuse: ensure MaxComponentLength is initialized

This commit is contained in:
Bill Zissimopoulos 2022-04-25 17:41:42 +01:00
parent df4c19c113
commit dd907a44ad

View File

@ -196,7 +196,7 @@ static NTSTATUS fsp_fuse_loop_start(struct fuse *f)
f->VolumeParams.SectorSize = FSP_FUSE_SECTORSIZE_MAX; f->VolumeParams.SectorSize = FSP_FUSE_SECTORSIZE_MAX;
if (f->VolumeParams.SectorsPerAllocationUnit == 0) if (f->VolumeParams.SectorsPerAllocationUnit == 0)
f->VolumeParams.SectorsPerAllocationUnit = 1; f->VolumeParams.SectorsPerAllocationUnit = 1;
if (f->VolumeParams.MaxComponentLength > 255) if (f->VolumeParams.MaxComponentLength == 0 || f->VolumeParams.MaxComponentLength > 255)
f->VolumeParams.MaxComponentLength = 255; f->VolumeParams.MaxComponentLength = 255;
if (0 == f->VolumeParams.VolumeCreationTime) if (0 == f->VolumeParams.VolumeCreationTime)