mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
sys: WIP
This commit is contained in:
parent
ee1663100a
commit
24890f517d
@ -68,6 +68,7 @@ FspCreate(
|
||||
|
||||
FSP_LEAVE_MJ(
|
||||
"FileObject=%p[%p:\"%wZ\"], "
|
||||
"Flags=%x, "
|
||||
"DesiredAccess=%#lx, "
|
||||
"ShareAccess=%#x, "
|
||||
"Options=%#lx, "
|
||||
@ -75,6 +76,7 @@ FspCreate(
|
||||
"AllocationSize=%#lx:%#lx, "
|
||||
"Ea=%p, EaLength=%ld",
|
||||
IrpSp->FileObject, IrpSp->FileObject->RelatedFileObject, IrpSp->FileObject->FileName,
|
||||
IrpSp->Flags,
|
||||
IrpSp->Parameters.Create.SecurityContext->DesiredAccess,
|
||||
IrpSp->Parameters.Create.ShareAccess,
|
||||
IrpSp->Parameters.Create.Options,
|
||||
|
@ -70,15 +70,15 @@
|
||||
FSP_ENTER_(__VA_ARGS__)
|
||||
#define FSP_LEAVE_MJ(fmt, ...) \
|
||||
FSP_LEAVE_( \
|
||||
FSP_DEBUGLOG_("%c%c, %s%s, IrpSp->Flags=%x, " fmt, " = %s[%lld]",\
|
||||
FspDeviceExtension(DeviceObject)->Kind,\
|
||||
FSP_DEBUGLOG_("%p, %c%c, %s%s, " fmt, " = %s[%lld]",\
|
||||
Irp, \
|
||||
FspDeviceExtension(IrpSp->DeviceObject)->Kind,\
|
||||
Irp->RequestorMode == KernelMode ? 'K' : 'U',\
|
||||
IrpMajorFunctionSym(IrpSp->MajorFunction),\
|
||||
IrpMinorFunctionSym(IrpSp->MajorFunction, IrpSp->MajorFunction),\
|
||||
IrpSp->Flags, \
|
||||
__VA_ARGS__, \
|
||||
NtStatusSym(Result), \
|
||||
!NT_SUCCESS(Result) ? 0 : Irp->IoStatus.Information);\
|
||||
(LONGLONG)Irp->IoStatus.Information); \
|
||||
if (STATUS_PENDING == Result) \
|
||||
{ \
|
||||
if (0 == (IrpSp->Control & SL_PENDING_RETURNED))\
|
||||
|
@ -19,7 +19,10 @@ VOID FspCompleteRequest(PIRP Irp, NTSTATUS Result)
|
||||
ASSERT(STATUS_PENDING != Result);
|
||||
|
||||
if (0 != Irp->Tail.Overlay.DriverContext[0])
|
||||
{
|
||||
ExFreePoolWithTag(Irp->Tail.Overlay.DriverContext[0], FSP_TAG);
|
||||
Irp->Tail.Overlay.DriverContext[0] = 0;
|
||||
}
|
||||
|
||||
if (!NT_SUCCESS(Result))
|
||||
Irp->IoStatus.Information = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user