mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-19 03:18:15 -04:00
improved debug output of directory storage, and fixed bug causing loading error (previously crashing files should be removed)
This commit is contained in:
parent
ddc89a6535
commit
f58e9c1a73
2 changed files with 51 additions and 28 deletions
|
@ -88,8 +88,10 @@ bool FileListIO::write125Size(unsigned char *data,uint32_t data_size,uint32_t& o
|
|||
if(offset+2 > data_size)
|
||||
return false;
|
||||
|
||||
data[offset++] = (uint8_t)((S >> 8) + 192) ;
|
||||
data[offset++] = (uint8_t)((S & 255) - 192) ;
|
||||
data[offset+1] = (S - 192) & 0xff ;
|
||||
data[offset ] = ((S - 192 - data[offset+1]) >> 8) + 192;
|
||||
|
||||
offset += 2 ;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue