liblp: Fix incorrect get_block_device_size usage.

Bug: 79173901
Test: N/A
Change-Id: I22a3e86153830782453a47e460800f3cb4c26958
This commit is contained in:
David Anderson 2018-07-06 16:01:27 -07:00
parent 35f2704226
commit 839a818221
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ bool GetDescriptorSize(int fd, uint64_t* size) {
}
if (S_ISBLK(s.st_mode)) {
return get_block_device_size(fd);
*size = get_block_device_size(fd);
return *size != 0;
}
int64_t result = SeekFile64(fd, 0, SEEK_END);