Fix off-by-one in the VirtualFAT cluster chain generator.
This commit is contained in:
parent
7f5dab4f26
commit
6da1677bc3
2 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ static void ReadBlock(uint16_t BlockNumber)
|
|||
}
|
||||
|
||||
/* Mark last cluster as end of file */
|
||||
((uint16_t*)&BlockBuffer)[FILE_CLUSTERS(2049) + 3] = 0xFFFF;
|
||||
((uint16_t*)&BlockBuffer)[FILE_CLUSTERS(2049) + 1] = 0xFFFF;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue