From 8056edf828aa7eecbcc069a738f652918826b3ed Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sat, 18 Feb 2017 11:47:40 +0000 Subject: [PATCH] [USBSTOR] - Fix a broken assert (yes, calling NTOHL is wrong, ContiguousLogicBlocksByte0 is the MSB). CID 701077 svn path=/trunk/; revision=73826 --- reactos/drivers/usb/usbstor/scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/usb/usbstor/scsi.c b/reactos/drivers/usb/usbstor/scsi.c index 60d84b6f545..ee5bfba1894 100644 --- a/reactos/drivers/usb/usbstor/scsi.c +++ b/reactos/drivers/usb/usbstor/scsi.c @@ -1201,7 +1201,7 @@ USBSTOR_SendReadWrite( // sanity check // Temp = (Cmd.ContiguousLogicBlocksByte0 << 8 | Cmd.ContiguousLogicBlocksByte1); - ASSERT(NTOHL(Temp == BlockCount)); + ASSERT(Temp == BlockCount); DPRINT("USBSTOR_SendReadWrite BlockAddress %x%x%x%x BlockCount %lu BlockLength %lu\n", Cmd.LogicalBlockByte0, Cmd.LogicalBlockByte1, Cmd.LogicalBlockByte2, Cmd.LogicalBlockByte3, BlockCount, PDODeviceExtension->BlockLength); -- 2.17.1