From 3310a4300e118af1e45194e3dc9c80dced16eaf4 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Sat, 11 Jun 2016 15:47:28 -0700 Subject: [PATCH] dll: fuse: testing --- src/dll/fuse/fuse_intf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dll/fuse/fuse_intf.c b/src/dll/fuse/fuse_intf.c index 1c334779..11afb763 100644 --- a/src/dll/fuse/fuse_intf.c +++ b/src/dll/fuse/fuse_intf.c @@ -1334,6 +1334,7 @@ static NTSTATUS fsp_fuse_intf_ReadDirectory(FSP_FILE_SYSTEM *FileSystem, if (0 == filedesc->DirBuffer) { memset(&dh, 0, sizeof dh); + dh.FileSystem = FileSystem; Size = lstrlenA(filedesc->PosixPath); dh.PosixPath = MemAlloc(Size + 1 + 255 + 1); @@ -1347,6 +1348,7 @@ static NTSTATUS fsp_fuse_intf_ReadDirectory(FSP_FILE_SYSTEM *FileSystem, if (1 < Size) /* if not root */ dh.PosixPath[Size++] = '/'; + dh.PosixPath[Size] = '\0'; dh.PosixName = dh.PosixPath + Size; dh.OriginalBuffer = Buffer;