Am 18.01.25 um 21:55 schrieb Michael Tokarev: > 18.01.2025 23:32, Volker Rümelin wrote: > >> The rules are: >> If the file name length in characters is a multiple of 13 you are done. >> Otherwise the remaining unused LFN direntry name array elements have to >> be filled with one 0x0000 (a 16 bit 0) and the rest with 0xffff. > > BTW, are we really okay with a single dirent if the name length is > exactly > 13 utf16 chars? Don't it need a null terminator? >
Yes, that's okay. A null terminator isn't allowed in this case. See page 28 at https://msdn.microsoft.com/en-us/windows/hardware/gg463080.aspx With best regards, Volker