mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
dll: fuse: ensure MaxComponentLength is initialized
This commit is contained in:
parent
df4c19c113
commit
dd907a44ad
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user