mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 01:35:43 +00:00
[NTOSKRNL_VISTA][XDK] Implement IoSetMasterIrpStatus
This commit is contained in:
parent
f0ffda34da
commit
d9864ca6c5
2 changed files with 35 additions and 12 deletions
|
@ -107,4 +107,25 @@ IoGetIoPriorityHint(
|
|||
_In_ PIRP Irp)
|
||||
{
|
||||
return IoPriorityNormal;
|
||||
}
|
||||
}
|
||||
|
||||
NTKERNELAPI
|
||||
VOID
|
||||
IoSetMasterIrpStatus(
|
||||
_Inout_ PIRP MasterIrp,
|
||||
_In_ NTSTATUS Status)
|
||||
{
|
||||
NTSTATUS MasterStatus = MasterIrp->IoStatus.Status;
|
||||
|
||||
if (Status == STATUS_FT_READ_FROM_COPY)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ((Status == STATUS_VERIFY_REQUIRED) ||
|
||||
(MasterStatus == STATUS_SUCCESS && !NT_SUCCESS(Status)) ||
|
||||
(!NT_SUCCESS(MasterStatus) && !NT_SUCCESS(Status) && Status > MasterStatus))
|
||||
{
|
||||
MasterIrp->IoStatus.Status = Status;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue