diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2011-12-15 13:29:30 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-12-15 13:49:06 (GMT) |
commit | 3a4728e169ef59896f8f1c7f1c9a3abc814c83cf (patch) | |
tree | 76c11e90ae855cb482edc12ecd564b3c4a195917 /src/gui/kernel | |
parent | ba3f5ec3884aafb6c9761ef8719b82d4345245fa (diff) | |
download | Qt-3a4728e169ef59896f8f1c7f1c9a3abc814c83cf.zip Qt-3a4728e169ef59896f8f1c7f1c9a3abc814c83cf.tar.gz Qt-3a4728e169ef59896f8f1c7f1c9a3abc814c83cf.tar.bz2 |
Symbian - Fix QFile::map with non page aligned offsets
Although it is not documented, RFileMap native API requires the offset
into the file to be a multiple of the page size.
Round down the offset requested by the user to the page size.
Add back the difference before returning the base address to the user.
e.g. if the offset passed to QFile::map was 5000:
The offset passed to RFileMap will be 4096
The address returned to the user will be the RFileMap::Base() + 904
The modified address is used to key the hash of file mappings, so that
QFile::unmap() can be passed the modified address without needing changes.
Reviewed-by: mread
Task-number: ou1cimx#953054
Diffstat (limited to 'src/gui/kernel')
0 files changed, 0 insertions, 0 deletions