mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 17:32:57 -05:00
Major refactoring: WIP
This commit is contained in:
@ -33,11 +33,12 @@ static NTSTATUS FspFsctlCreate(
|
||||
PAGED_CODE();
|
||||
|
||||
FSP_FSCTL_FILE_CONTEXT2 *FsContext2;
|
||||
FsContext2 = FspAlloc(sizeof *FsContext2);
|
||||
FsContext2 = FspAllocNonPaged(sizeof *FsContext2);
|
||||
if (0 == FsContext2)
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
||||
RtlZeroMemory(FsContext2, sizeof *FsContext2);
|
||||
ExInitializeFastMutex(&FsContext2->FastMutex);
|
||||
IrpSp->FileObject->FsContext2 = FsContext2;
|
||||
|
||||
Irp->IoStatus.Information = FILE_OPENED;
|
||||
|
Reference in New Issue
Block a user