mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-31 03:58:38 -05:00 
			
		
		
		
	sys: WIP
This commit is contained in:
		| @@ -34,5 +34,19 @@ FspCreate( | |||||||
|     IoCompleteRequest(Irp, IO_NO_INCREMENT); |     IoCompleteRequest(Irp, IO_NO_INCREMENT); | ||||||
|     Result = STATUS_INVALID_DEVICE_REQUEST; |     Result = STATUS_INVALID_DEVICE_REQUEST; | ||||||
|  |  | ||||||
|     FSP_LEAVE_MJ("", 0); |     FSP_LEAVE_MJ( | ||||||
|  |         "FileObject=%p:\"%wZ\", " | ||||||
|  |         "DesiredAccess=%#lx, " | ||||||
|  |         "ShareAccess=%#x, " | ||||||
|  |         "Options=%#lx, " | ||||||
|  |         "FileAttributes=%#x, " | ||||||
|  |         "AllocationSize=%#lx:%#lx, " | ||||||
|  |         "Ea=%p, EaLength=%ld", | ||||||
|  |         IrpSp->FileObject->RelatedFileObject, IrpSp->FileObject->FileName, | ||||||
|  |         IrpSp->Parameters.Create.SecurityContext->DesiredAccess, | ||||||
|  |         IrpSp->Parameters.Create.ShareAccess, | ||||||
|  |         IrpSp->Parameters.Create.Options, | ||||||
|  |         IrpSp->Parameters.Create.FileAttributes, | ||||||
|  |         Irp->Overlay.AllocationSize.HighPart, Irp->Overlay.AllocationSize.LowPart, | ||||||
|  |         Irp->AssociatedIrp.SystemBuffer, IrpSp->Parameters.Create.EaLength); | ||||||
| } | } | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ static ANSI_STRING DbgBreakPointInc = RTL_CONSTANT_STRING("Fsp*"); | |||||||
| BOOLEAN HasDbgBreakPoint(const char *Function) | BOOLEAN HasDbgBreakPoint(const char *Function) | ||||||
| { | { | ||||||
|     /* poor man's breakpoints; work around 32 breakpoints kernel limit */ |     /* poor man's breakpoints; work around 32 breakpoints kernel limit */ | ||||||
|     if (KeGetCurrentIrql() > APC_LEVEL) |     if (KeGetCurrentIrql() > APC_LEVEL) /* FsRtlIsDbcsInExpression restriction */ | ||||||
|         return TRUE; |         return TRUE; | ||||||
|     ANSI_STRING Name; |     ANSI_STRING Name; | ||||||
|     RtlInitAnsiString(&Name, Function); |     RtlInitAnsiString(&Name, Function); | ||||||
|   | |||||||
| @@ -62,9 +62,10 @@ | |||||||
|     FSP_ENTER_(__VA_ARGS__) |     FSP_ENTER_(__VA_ARGS__) | ||||||
| #define FSP_LEAVE_MJ(fmt, ...)          \ | #define FSP_LEAVE_MJ(fmt, ...)          \ | ||||||
|     FSP_LEAVE_(" = %s", NtStatusSym(Result),\ |     FSP_LEAVE_(" = %s", NtStatusSym(Result),\ | ||||||
|         "'%c', %s%s, Flags=%x, " \ |         "%c%c, %s%s, IrpSp->Flags=%x, " \ | ||||||
|         fmt,                            \ |         fmt,                            \ | ||||||
|         FspDeviceExtension(DeviceObject)->Kind,\ |         FspDeviceExtension(DeviceObject)->Kind,\ | ||||||
|  |         Irp->RequestorMode == KernelMode ? 'K' : 'U',\ | ||||||
|         IrpMajorFunctionSym(IrpSp->MajorFunction),\ |         IrpMajorFunctionSym(IrpSp->MajorFunction),\ | ||||||
|         IrpMinorFunctionSym(IrpSp->MajorFunction, IrpSp->MajorFunction),\ |         IrpMinorFunctionSym(IrpSp->MajorFunction, IrpSp->MajorFunction),\ | ||||||
|         IrpSp->Flags,                   \ |         IrpSp->Flags,                   \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user