Update fuse_intf.c

This commit is contained in:
zeho11 2022-12-07 15:17:59 +09:00 committed by GitHub
parent b62e1e920b
commit cb81e81985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2000,7 +2000,7 @@ static NTSTATUS fsp_fuse_intf_FixDirInfo(FSP_FILE_SYSTEM *FileSystem,
NTSTATUS Result; NTSTATUS Result;
SizeA = lstrlenA(filedesc->PosixPath); SizeA = lstrlenA(filedesc->PosixPath);
PosixPath = MemAlloc(SizeA + 1 + 255 + 1); PosixPath = MemAlloc(SizeA + 1 + 1020 + 1);
if (0 == PosixPath) if (0 == PosixPath)
{ {
Result = STATUS_INSUFFICIENT_RESOURCES; Result = STATUS_INSUFFICIENT_RESOURCES;
@ -2049,7 +2049,7 @@ static NTSTATUS fsp_fuse_intf_FixDirInfo(FSP_FILE_SYSTEM *FileSystem,
else else
{ {
PosixPathEnd = 0; PosixPathEnd = 0;
SizeA = WideCharToMultiByte(CP_UTF8, 0, DirInfo->FileNameBuf, SizeW, PosixName, 255, 0, 0); SizeA = WideCharToMultiByte(CP_UTF8, 0, DirInfo->FileNameBuf, SizeW, PosixName, 1020, 0, 0);
if (0 == SizeA) if (0 == SizeA)
{ {
/* this should never happen because we just converted using MultiByteToWideChar */ /* this should never happen because we just converted using MultiByteToWideChar */