mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 17:32:57 -05:00
sys: VS Editor sucks: strip CR's
This commit is contained in:
@ -114,13 +114,13 @@ static NTSTATUS FspFsvrtDeleteVolume(
|
||||
static NTSTATUS FspFsvrtTransact(
|
||||
PDEVICE_OBJECT DeviceObject, PIRP Irp, PIO_STACK_LOCATION IrpSp)
|
||||
{
|
||||
/* check parameters */
|
||||
ULONG InputBufferLength = IrpSp->Parameters.FileSystemControl.InputBufferLength;
|
||||
ULONG OutputBufferLength = IrpSp->Parameters.FileSystemControl.OutputBufferLength;
|
||||
PVOID SystemBuffer = Irp->AssociatedIrp.SystemBuffer;
|
||||
if (sizeof(FSP_TRANSACT_RSP) > InputBufferLength || 0 == SystemBuffer)
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
if (FSP_FSCTL_TRANSACT_BUFFER_SIZE > OutputBufferLength)
|
||||
/* check parameters */
|
||||
ULONG InputBufferLength = IrpSp->Parameters.FileSystemControl.InputBufferLength;
|
||||
ULONG OutputBufferLength = IrpSp->Parameters.FileSystemControl.OutputBufferLength;
|
||||
PVOID SystemBuffer = Irp->AssociatedIrp.SystemBuffer;
|
||||
if (sizeof(FSP_TRANSACT_RSP) > InputBufferLength || 0 == SystemBuffer)
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
if (FSP_FSCTL_TRANSACT_BUFFER_SIZE > OutputBufferLength)
|
||||
return STATUS_BUFFER_TOO_SMALL;
|
||||
|
||||
NTSTATUS Result;
|
||||
@ -135,24 +135,24 @@ static NTSTATUS FspFsvrtTransact(
|
||||
if (!NT_SUCCESS(Result))
|
||||
return Result;
|
||||
|
||||
/* process any user-mode file system responses */
|
||||
Response = SystemBuffer;
|
||||
SystemBufferEnd = (PUINT8)SystemBuffer + InputBufferLength;
|
||||
for (;;)
|
||||
{
|
||||
if ((PUINT8)Response + sizeof(Response->Size) > SystemBufferEnd ||
|
||||
sizeof(FSP_TRANSACT_RSP) > Response->Size ||
|
||||
(PUINT8)Response + Response->Size > SystemBufferEnd)
|
||||
break;
|
||||
|
||||
ProcessIrp = FspIoqEndProcessingIrp(&FsvrtDeviceExtension->Ioq, Response->Hint);
|
||||
if (0 == ProcessIrp)
|
||||
/* either IRP was canceled or a bogus IrpHint was provided */
|
||||
continue;
|
||||
|
||||
//FspDispatchProcessedIrp(ProcessIrp, Response);
|
||||
|
||||
Response = (PVOID)((PUINT8)Response + Response->Size);
|
||||
/* process any user-mode file system responses */
|
||||
Response = SystemBuffer;
|
||||
SystemBufferEnd = (PUINT8)SystemBuffer + InputBufferLength;
|
||||
for (;;)
|
||||
{
|
||||
if ((PUINT8)Response + sizeof(Response->Size) > SystemBufferEnd ||
|
||||
sizeof(FSP_TRANSACT_RSP) > Response->Size ||
|
||||
(PUINT8)Response + Response->Size > SystemBufferEnd)
|
||||
break;
|
||||
|
||||
ProcessIrp = FspIoqEndProcessingIrp(&FsvrtDeviceExtension->Ioq, Response->Hint);
|
||||
if (0 == ProcessIrp)
|
||||
/* either IRP was canceled or a bogus IrpHint was provided */
|
||||
continue;
|
||||
|
||||
//FspDispatchProcessedIrp(ProcessIrp, Response);
|
||||
|
||||
Response = (PVOID)((PUINT8)Response + Response->Size);
|
||||
}
|
||||
|
||||
if (FspIoqPostIrp(&FsvrtDeviceExtension->TransactIoq, Irp))
|
||||
|
Reference in New Issue
Block a user