[USBSTOR]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 18 Feb 2017 11:47:40 +0000 (11:47 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 18 Feb 2017 11:47:40 +0000 (11:47 +0000)
- 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

index 60d84b6..ee5bfba 100644 (file)
@@ -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);