summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2015-03-20 08:16:20 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-22 17:09:36 +0100
commit50f06dbdb157fe26a83e6e5a8e8d8fa66d9f5d80 (patch)
treeae5c250391400d421297881d1a3a6018adf56beb /src
parent3f7bf360461938b3051378e8dbcc45e9c6c07939 (diff)
evil: fix access to a file mapping object
Patch from Jorge Luis Zapatta (turran), a bit modified by me @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/evil/evil_mman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evil/evil_mman.c b/src/lib/evil/evil_mman.c
index cecb550f13..8d6dcdb2cc 100644
--- a/src/lib/evil/evil_mman.c
+++ b/src/lib/evil/evil_mman.c
@@ -103,7 +103,7 @@ mmap(void *addr EVIL_UNUSED,
103 if (protect & (PAGE_EXECUTE_READWRITE | PAGE_EXECUTE_READ)) 103 if (protect & (PAGE_EXECUTE_READWRITE | PAGE_EXECUTE_READ))
104 acs = FILE_MAP_EXECUTE; 104 acs = FILE_MAP_EXECUTE;
105#endif 105#endif
106 else if ((protect & (PAGE_READWRITE | PAGE_READONLY)) == (PAGE_READWRITE | PAGE_READONLY)) 106 else if (protect & (PAGE_READWRITE | PAGE_READONLY))
107 acs = FILE_MAP_READ; 107 acs = FILE_MAP_READ;
108 else 108 else
109 { 109 {