[Base] Android content URI file memory mapping
This commit is contained in:
@@ -48,7 +48,7 @@ std::unique_ptr<MappedMemory> DiscImageEntry::OpenMapped(
|
||||
|
||||
size_t real_offset = data_offset_ + offset;
|
||||
size_t real_length = length ? std::min(length, data_size_) : data_size_;
|
||||
return mmap_->Slice(mode, real_offset, real_length);
|
||||
return mmap_->Slice(real_offset, real_length);
|
||||
}
|
||||
|
||||
} // namespace vfs
|
||||
|
||||
Reference in New Issue
Block a user