summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-12-15 13:29:30 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2011-12-15 13:49:06 (GMT)
commit3a4728e169ef59896f8f1c7f1c9a3abc814c83cf (patch)
tree76c11e90ae855cb482edc12ecd564b3c4a195917 /src/gui/dialogs
parentba3f5ec3884aafb6c9761ef8719b82d4345245fa (diff)
downloadQt-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/dialogs')
0 files changed, 0 insertions, 0 deletions