mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
- Always set Irp->IoStatus.Status
- Clear the cancel routine only when completing svn path=/branches/aicom-network-fixes/; revision=35340
This commit is contained in:
parent
e8c5f099c5
commit
5cf6890ee7
1 changed files with 2 additions and 2 deletions
|
@ -27,14 +27,14 @@ NTSTATUS IRPFinish( PIRP Irp, NTSTATUS Status ) {
|
|||
UntrackFL( __FILE__, __LINE__, Irp );
|
||||
#endif
|
||||
|
||||
(void)IoSetCancelRoutine( Irp, NULL );
|
||||
Irp->IoStatus.Status = Status;
|
||||
|
||||
if( Status == STATUS_PENDING )
|
||||
IoMarkIrpPending( Irp );
|
||||
else {
|
||||
Irp->IoStatus.Status = Status;
|
||||
Irql = KeGetCurrentIrql();
|
||||
|
||||
(void)IoSetCancelRoutine( Irp, NULL );
|
||||
IoCompleteRequest( Irp, IO_NETWORK_INCREMENT );
|
||||
if (KeGetCurrentIrql() != Irql) {
|
||||
DbgPrint("WARNING: IO COMPLETION RETURNED AT WRONG IRQL:\n");
|
||||
|
|
Loading…
Reference in a new issue