mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
Kernel/FileSystem: Fix handling of FAT names that don't fill an entry
* Fix bug where last character of a filename or extension would be truncated (HELLO.TXT -> HELL.TX). * Fix bug where additional NULL characters would be added to long filenames that did not completely fill one of the Long Filename Entry character fields.
This commit is contained in:
parent
f2253d11e5
commit
31eeea08ba
2 changed files with 17 additions and 3 deletions
|
@ -36,7 +36,8 @@ private:
|
|||
static constexpr u8 end_entry_byte = 0x00;
|
||||
static constexpr u8 unused_entry_byte = 0xE5;
|
||||
|
||||
static constexpr u8 lfn_entry_text_termination = 0xFF;
|
||||
static constexpr u8 lfn_entry_character_termination = 0x00;
|
||||
static constexpr u8 lfn_entry_unused_byte = 0xFF;
|
||||
|
||||
static constexpr u16 first_fat_year = 1980;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue