Fixed setSectorsUsed to set a word (two bytes) instead of a byte.
This commit is contained in:
parent
ae1a101db2
commit
ec47243efe
|
@ -205,7 +205,7 @@ public class DosFileEntry implements FileEntry {
|
|||
*/
|
||||
public void setSectorsUsed(int sectorsUsed) {
|
||||
byte[] data = readFileEntry();
|
||||
data[0x21] = (byte) sectorsUsed;
|
||||
AppleUtil.setWordValue(data, 0x21, sectorsUsed);
|
||||
writeFileEntry(data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue