mirror of
https://github.com/reactos/reactos.git
synced 2024-09-15 07:05:04 +00:00
- Fix a bug where Irp->IoStatus wasn't set if Status == STATUS_PENDING
svn path=/branches/aicom-network-fixes/; revision=35024
This commit is contained in:
parent
80709d7858
commit
dfd8d6b0c0
|
@ -237,6 +237,9 @@ NTSTATUS NTAPI UnlockAndMaybeComplete
|
|||
UINT Information,
|
||||
PIO_COMPLETION_ROUTINE Completion ) {
|
||||
|
||||
Irp->IoStatus.Status = Status;
|
||||
Irp->IoStatus.Information = Information;
|
||||
|
||||
if( Status == STATUS_PENDING ) {
|
||||
/* We should firstly mark this IRP as pending, because
|
||||
otherwise it may be completed by StreamSocketConnectComplete()
|
||||
|
@ -246,8 +249,6 @@ NTSTATUS NTAPI UnlockAndMaybeComplete
|
|||
} else {
|
||||
if ( Irp->MdlAddress ) UnlockRequest( Irp, IoGetCurrentIrpStackLocation( Irp ) );
|
||||
SocketStateUnlock( FCB );
|
||||
Irp->IoStatus.Status = Status;
|
||||
Irp->IoStatus.Information = Information;
|
||||
if( Completion )
|
||||
Completion( FCB->DeviceExt->DeviceObject, Irp, FCB );
|
||||
IoCompleteRequest( Irp, IO_NETWORK_INCREMENT );
|
||||
|
|
Loading…
Reference in a new issue