1
0
mirror of https://github.com/winfsp/winfsp.git synced 2025-12-25 21:42:55 -06:00

dll: FSP_FILE_SYSTEM

This commit is contained in:
Bill Zissimopoulos
2016-01-03 14:50:23 -08:00
parent f1d75a2653
commit 4429955506
3 changed files with 40 additions and 15 deletions

View File

@@ -14,7 +14,7 @@ typedef struct _FSP_DISPATCHER_WORK_ITEM
FSP_API NTSTATUS FspFileSystemCreate(PWSTR DevicePath,
const FSP_FSCTL_VOLUME_PARAMS *VolumeParams,
FSP_FILE_SYSTEM_DISPATCHER *Dispatcher,
const FSP_FILE_SYSTEM_INTERFACE *Interface,
FSP_FILE_SYSTEM **PFileSystem)
{
NTSTATUS Result;
@@ -22,6 +22,9 @@ FSP_API NTSTATUS FspFileSystemCreate(PWSTR DevicePath,
*PFileSystem = 0;
if (0 == Interface)
return STATUS_INVALID_PARAMETER;
FileSystem = MemAlloc(sizeof *FileSystem);
if (0 == FileSystem)
return STATUS_INSUFFICIENT_RESOURCES;
@@ -36,7 +39,10 @@ FSP_API NTSTATUS FspFileSystemCreate(PWSTR DevicePath,
return Result;
}
FileSystem->Dispatcher = 0 != Dispatcher ? Dispatcher : FspFileSystemDirectDispatcher;
FileSystem->Dispatcher = FspFileSystemDirectDispatcher;
FileSystem->Operations[FspFsctlTransactCreateKind] = 0;
// !!!: ...
FileSystem->Interface = Interface;
*PFileSystem = FileSystem;