mirror of
https://github.com/reactos/reactos.git
synced 2025-06-13 04:08:29 +00:00
[NTOS][MUP]: Use the correct constant for the PriorityBoost parameter in the IoCompleteRequest calls.
svn path=/trunk/; revision=71331
This commit is contained in:
parent
a8924f81c4
commit
d74b93c5eb
2 changed files with 7 additions and 7 deletions
|
@ -1715,7 +1715,7 @@ MupDereferenceMasterQueryContext(PMUP_MQC MasterQueryContext)
|
||||||
Complete:
|
Complete:
|
||||||
/* In finally, complete the IRP for real! */
|
/* In finally, complete the IRP for real! */
|
||||||
MasterQueryContext->Irp->IoStatus.Status = Status;
|
MasterQueryContext->Irp->IoStatus.Status = Status;
|
||||||
IofCompleteRequest(MasterQueryContext->Irp, IO_DISK_INCREMENT);
|
IoCompleteRequest(MasterQueryContext->Irp, IO_DISK_INCREMENT);
|
||||||
|
|
||||||
MasterQueryContext->Irp = NULL;
|
MasterQueryContext->Irp = NULL;
|
||||||
MupFreeMasterQueryContext(MasterQueryContext);
|
MupFreeMasterQueryContext(MasterQueryContext);
|
||||||
|
|
|
@ -191,7 +191,7 @@ FsRtlCancelNotify(IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
||||||
/* Set appropriate status and complete */
|
/* Set appropriate status and complete */
|
||||||
Irp->IoStatus.Status = STATUS_CANCELLED;
|
Irp->IoStatus.Status = STATUS_CANCELLED;
|
||||||
IofCompleteRequest(Irp, EVENT_INCREMENT);
|
IoCompleteRequest(Irp, IO_DISK_INCREMENT);
|
||||||
|
|
||||||
/* If that notification isn't referenced any longer, drop it */
|
/* If that notification isn't referenced any longer, drop it */
|
||||||
if (!InterlockedDecrement((PLONG)&(NotifyChange->ReferenceCount)))
|
if (!InterlockedDecrement((PLONG)&(NotifyChange->ReferenceCount)))
|
||||||
|
@ -384,7 +384,7 @@ ReleaseAndComplete:
|
||||||
Completion:
|
Completion:
|
||||||
IoMarkIrpPending(Irp);
|
IoMarkIrpPending(Irp);
|
||||||
Irp->IoStatus.Status = Status;
|
Irp->IoStatus.Status = Status;
|
||||||
IoCompleteRequest(Irp, EVENT_INCREMENT);
|
IoCompleteRequest(Irp, IO_DISK_INCREMENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -794,7 +794,7 @@ FsRtlNotifyFilterChangeDirectory(IN PNOTIFY_SYNC NotifySync,
|
||||||
{
|
{
|
||||||
IoMarkIrpPending(NotifyIrp);
|
IoMarkIrpPending(NotifyIrp);
|
||||||
NotifyIrp->IoStatus.Status = STATUS_NOTIFY_CLEANUP;
|
NotifyIrp->IoStatus.Status = STATUS_NOTIFY_CLEANUP;
|
||||||
IoCompleteRequest(NotifyIrp, EVENT_INCREMENT);
|
IoCompleteRequest(NotifyIrp, IO_DISK_INCREMENT);
|
||||||
_SEH2_LEAVE;
|
_SEH2_LEAVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -807,14 +807,14 @@ FsRtlNotifyFilterChangeDirectory(IN PNOTIFY_SYNC NotifySync,
|
||||||
{
|
{
|
||||||
IoMarkIrpPending(NotifyIrp);
|
IoMarkIrpPending(NotifyIrp);
|
||||||
NotifyIrp->IoStatus.Status = STATUS_NOTIFY_CLEANUP;
|
NotifyIrp->IoStatus.Status = STATUS_NOTIFY_CLEANUP;
|
||||||
IoCompleteRequest(NotifyIrp, EVENT_INCREMENT);
|
IoCompleteRequest(NotifyIrp, IO_DISK_INCREMENT);
|
||||||
}
|
}
|
||||||
/* Or if it's about to be deleted, complete */
|
/* Or if it's about to be deleted, complete */
|
||||||
else if (NotifyChange->Flags & DELETE_IN_PROCESS)
|
else if (NotifyChange->Flags & DELETE_IN_PROCESS)
|
||||||
{
|
{
|
||||||
IoMarkIrpPending(NotifyIrp);
|
IoMarkIrpPending(NotifyIrp);
|
||||||
NotifyIrp->IoStatus.Status = STATUS_DELETE_PENDING;
|
NotifyIrp->IoStatus.Status = STATUS_DELETE_PENDING;
|
||||||
IoCompleteRequest(NotifyIrp, EVENT_INCREMENT);
|
IoCompleteRequest(NotifyIrp, IO_DISK_INCREMENT);
|
||||||
}
|
}
|
||||||
/* Complete now if asked to (and not asked to notify later on) */
|
/* Complete now if asked to (and not asked to notify later on) */
|
||||||
if ((NotifyChange->Flags & NOTIFY_IMMEDIATELY) && !(NotifyChange->Flags & NOTIFY_LATER))
|
if ((NotifyChange->Flags & NOTIFY_IMMEDIATELY) && !(NotifyChange->Flags & NOTIFY_LATER))
|
||||||
|
@ -822,7 +822,7 @@ FsRtlNotifyFilterChangeDirectory(IN PNOTIFY_SYNC NotifySync,
|
||||||
NotifyChange->Flags &= ~NOTIFY_IMMEDIATELY;
|
NotifyChange->Flags &= ~NOTIFY_IMMEDIATELY;
|
||||||
IoMarkIrpPending(NotifyIrp);
|
IoMarkIrpPending(NotifyIrp);
|
||||||
NotifyIrp->IoStatus.Status = STATUS_NOTIFY_ENUM_DIR;
|
NotifyIrp->IoStatus.Status = STATUS_NOTIFY_ENUM_DIR;
|
||||||
IoCompleteRequest(NotifyIrp, EVENT_INCREMENT);
|
IoCompleteRequest(NotifyIrp, IO_DISK_INCREMENT);
|
||||||
}
|
}
|
||||||
/* If no data yet, or asked to notify later on, handle */
|
/* If no data yet, or asked to notify later on, handle */
|
||||||
else if (NotifyChange->DataLength == 0 || (NotifyChange->Flags & NOTIFY_LATER))
|
else if (NotifyChange->DataLength == 0 || (NotifyChange->Flags & NOTIFY_LATER))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue