Reply 20 of 25, by h-a-l-9000
> the 0x5 into a 0x7 (works for me).
For me too 😀 thx.
> any idea when this happens?
one thing seems to be seeking to file end (i.e. file size = clustersize seek to clustersize) when the last valid byte is clustersize-1 (I hope I got that right).
Another might be seek way behind file end. Maybe there should be a check of seek position vs file size.
And then I had the impression that sometimes getAbsoluteSectFromBytePos fails for no reason (seekpos < filesize).
> else return false;
Make a true out of that and Norton Commander will work flawlessly (it's the seek to end of file case after write, the seek pos already is there).
1+1=10