Skip to content

Commit

Permalink
Merge pull request #52 from woshizhy/master
Browse files Browse the repository at this point in the history
Update the file size information to the dataset when modifying the fi…
  • Loading branch information
jfdelnero committed Dec 28, 2020
2 parents 5c743cb + acb2653 commit 34446bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mtp_properties.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,9 @@ int build_objectproplist_dataset(mtp_ctx * ctx, void * buffer, int maxsize,fs_en
return 0;
}

/* update the file size infomation */
entry->size = entrystat.st_size;

numberofelements = 0;

ofs = poke32(buffer, 0, maxsize, numberofelements); // Number of elements
Expand Down

0 comments on commit 34446bd

Please sign in to comment.