Changeset 92d9406 in mainline
- Timestamp:
- 2011-12-11T13:13:02Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1776895
- Parents:
- 7a6690d8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_directory.c
r7a6690d8 r92d9406 268 268 if (idx == 2 || idx == 3) 269 269 continue; 270 checksum = ((checksum << 15) | (checksum >> 1)) + (uint16_t)bytes[idx]; 270 checksum = ((checksum << 15) | (checksum >> 1)) + 271 (uint16_t)bytes[idx]; 271 272 } 272 273 return checksum; … … 312 313 array[1].stream.valid_data_size = host2uint64_t_le(ds->valid_data_size); 313 314 array[1].stream.data_size = host2uint64_t_le(ds->data_size); 314 array[0].file.checksum = host2uint16_t_le(exfat_directory_set_checksum((uint8_t *)array, 315 array[0].file.checksum = 316 host2uint16_t_le(exfat_directory_set_checksum((uint8_t *)array, 315 317 count * sizeof(exfat_dentry_t))); 316 318 … … 354 356 uctablep = EXFAT_NODE(fn); 355 357 356 uctable_chars = ALIGN_DOWN(uctablep->size, sizeof(uint16_t)) / sizeof(uint16_t); 358 uctable_chars = ALIGN_DOWN(uctablep->size, 359 sizeof(uint16_t)) / sizeof(uint16_t); 357 360 uctable = (uint16_t *) malloc(uctable_chars * sizeof(uint16_t)); 358 361 rc = exfat_read_uctable(di->bs, uctablep, (uint8_t *)uctable); … … 419 422 return rc; 420 423 421 if (i == df.file.count - 2) 422 chars = ds.stream.name_size - EXFAT_NAME_PART_LEN*(df.file.count - 2); 424 if (i == df.file.count - 2) { 425 chars = ds.stream.name_size - 426 EXFAT_NAME_PART_LEN*(df.file.count - 2); 427 } 428 423 429 rc = exfat_directory_get(di, &de); 424 430 if (rc != EOK)
Note:
See TracChangeset
for help on using the changeset viewer.