forked from len0rd/rockbox
fix wrong building block_count from read and write commands
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16501 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f8a5a40301
commit
ebb49434c6
1 changed files with 2 additions and 2 deletions
|
|
@ -701,7 +701,7 @@ static void handle_scsi(struct command_block_wrapper* cbw)
|
|||
cbw->command_block[4] << 8 |
|
||||
cbw->command_block[5] );
|
||||
current_cmd.count = block_size_mult *
|
||||
(cbw->command_block[7] << 16 |
|
||||
(cbw->command_block[7] << 8 |
|
||||
cbw->command_block[8]);
|
||||
|
||||
//logf("scsi read %d %d", current_cmd.sector, current_cmd.count);
|
||||
|
|
@ -738,7 +738,7 @@ static void handle_scsi(struct command_block_wrapper* cbw)
|
|||
cbw->command_block[4] << 8 |
|
||||
cbw->command_block[5] );
|
||||
current_cmd.count = block_size_mult *
|
||||
(cbw->command_block[7] << 16 |
|
||||
(cbw->command_block[7] << 8 |
|
||||
cbw->command_block[8]);
|
||||
/* expect data */
|
||||
if((current_cmd.sector + current_cmd.count) > block_count) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue