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