Windows: fix eina_file_map_new()
authorVincent Torri <vincent.torri@gmail.com>
Thu, 25 Jun 2020 14:44:15 +0000 (14:44 +0000)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 28 Jun 2020 22:34:20 +0000 (07:34 +0900)
commitb85dca8257439afd81fea12cd5bd60e96db081cd
tree6db2848dc6aa676d140781b7e9b11ed81bc3c1cb
parentf94b57ee77fa255f8b611d1375f7d5e50bae0d6b
Windows: fix eina_file_map_new()

the offset passed to MapViewOfFile() must be a multiple of the granularity.

https://docs.microsoft.com/en-us/windows/win32/memory/creating-a-view-within-a-file is taken as basis for this patch

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Reviewed-by: Wander Lairson Costa <wander.lairson@gmail.com>
Differential Revision: https://phab.enlightenment.org/D12031
src/lib/eina/eina_file_common.h
src/lib/eina/eina_file_win32.c