mountmgr: Don't access the IRP after it has been completed.

oldstable
Alexandre Julliard 2015-03-04 22:18:04 +09:00
parent da7c766bb5
commit 41eb2fd714
2 changed files with 2 additions and 2 deletions

View File

@ -967,7 +967,7 @@ static NTSTATUS WINAPI harddisk_ioctl( DEVICE_OBJECT *device, IRP *irp )
LeaveCriticalSection( &device_section );
IoCompleteRequest( irp, IO_NO_INCREMENT );
return irp->IoStatus.u.Status;
return STATUS_SUCCESS;
}
/* driver entry point for the harddisk driver */

View File

@ -410,7 +410,7 @@ static NTSTATUS WINAPI mountmgr_ioctl( DEVICE_OBJECT *device, IRP *irp )
break;
}
IoCompleteRequest( irp, IO_NO_INCREMENT );
return irp->IoStatus.u.Status;
return STATUS_SUCCESS;
}
/* main entry point for the mount point manager driver */