mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +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 );
|
UntrackFL( __FILE__, __LINE__, Irp );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)IoSetCancelRoutine( Irp, NULL );
|
Irp->IoStatus.Status = Status;
|
||||||
|
|
||||||
if( Status == STATUS_PENDING )
|
if( Status == STATUS_PENDING )
|
||||||
IoMarkIrpPending( Irp );
|
IoMarkIrpPending( Irp );
|
||||||
else {
|
else {
|
||||||
Irp->IoStatus.Status = Status;
|
|
||||||
Irql = KeGetCurrentIrql();
|
Irql = KeGetCurrentIrql();
|
||||||
|
|
||||||
|
(void)IoSetCancelRoutine( Irp, NULL );
|
||||||
IoCompleteRequest( Irp, IO_NETWORK_INCREMENT );
|
IoCompleteRequest( Irp, IO_NETWORK_INCREMENT );
|
||||||
if (KeGetCurrentIrql() != Irql) {
|
if (KeGetCurrentIrql() != Irql) {
|
||||||
DbgPrint("WARNING: IO COMPLETION RETURNED AT WRONG IRQL:\n");
|
DbgPrint("WARNING: IO COMPLETION RETURNED AT WRONG IRQL:\n");
|
||||||
|
|
Loading…
Reference in a new issue