mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Fixed stupid bugs.
svn path=/trunk/; revision=2668
This commit is contained in:
parent
6146ce21ba
commit
2867dd6eab
2 changed files with 8 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: class2.c,v 1.7 2002/03/03 19:38:09 ekohl Exp $
|
||||
/* $Id: class2.c,v 1.8 2002/03/03 23:45:30 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -216,6 +216,7 @@ ScsiClassBuildRequest(PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
NextIrpStack->MajorFunction = IRP_MJ_SCSI;
|
||||
NextIrpStack->Parameters.Scsi.Srb = Srb;
|
||||
NextIrpStack->DeviceObject = DeviceObject;
|
||||
|
||||
#if 0
|
||||
/* save retry count in current IRP stack */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: scsiport.c,v 1.7 2002/03/03 19:39:10 ekohl Exp $
|
||||
/* $Id: scsiport.c,v 1.8 2002/03/03 23:46:01 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -1021,13 +1021,13 @@ ScsiPortStartIo(IN PDEVICE_OBJECT DeviceObject,
|
|||
IoStartNextPacket(DeviceObject,
|
||||
FALSE);
|
||||
}
|
||||
if (DeviceExtension->IrpFlags | IRP_FLAG_COMPLETE)
|
||||
if (DeviceExtension->IrpFlags & IRP_FLAG_COMPLETE)
|
||||
{
|
||||
DeviceExtension->IrpFlags &= ~IRP_FLAG_COMPLETE;
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
}
|
||||
|
||||
if (DeviceExtension->IrpFlags | IRP_FLAG_NEXT)
|
||||
if (DeviceExtension->IrpFlags & IRP_FLAG_NEXT)
|
||||
{
|
||||
DeviceExtension->IrpFlags &= ~IRP_FLAG_NEXT;
|
||||
IoStartNextPacket(DeviceObject, FALSE);
|
||||
|
@ -1369,16 +1369,16 @@ ScsiPortDpcForIsr(IN PKDPC Dpc,
|
|||
// DpcIrp->IoStatus.Information = 0;
|
||||
// DpcIrp->IoStatus.Status = STATUS_SUCCESS;
|
||||
|
||||
if (DeviceExtension->IrpFlags | IRP_FLAG_COMPLETE)
|
||||
if (DeviceExtension->IrpFlags & IRP_FLAG_COMPLETE)
|
||||
{
|
||||
DeviceExtension->IrpFlags &= ~IRP_FLAG_COMPLETE;
|
||||
IoCompleteRequest(DpcIrp, IO_NO_INCREMENT);
|
||||
}
|
||||
|
||||
if (DeviceExtension->IrpFlags | IRP_FLAG_NEXT)
|
||||
if (DeviceExtension->IrpFlags & IRP_FLAG_NEXT)
|
||||
{
|
||||
DeviceExtension->IrpFlags &= ~IRP_FLAG_NEXT;
|
||||
// IoStartNextPacket(DpcDeviceObject, FALSE);
|
||||
IoStartNextPacket(DpcDeviceObject, FALSE);
|
||||
}
|
||||
|
||||
DPRINT1("ScsiPortDpcForIsr() done\n");
|
||||
|
|
Loading…
Reference in a new issue