diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2015-03-20 08:16:20 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-03-24 23:14:10 +0100 |
commit | 3521cd1fc2ce0dcea8663613aa7249722e139548 (patch) | |
tree | cd85181448f11757de6c9f3171f1796aa1ef75d9 | |
parent | 3ab85b3106fbbcdb46aaf90b4e6169cab9467922 (diff) | |
download | efl-3521cd1fc2ce0dcea8663613aa7249722e139548.tar.gz |
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>
-rw-r--r-- | src/lib/evil/evil_mman.c | 2 |
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, if (protect & (PAGE_EXECUTE_READWRITE | PAGE_EXECUTE_READ)) acs = FILE_MAP_EXECUTE; #endif - else if ((protect & (PAGE_READWRITE | PAGE_READONLY)) == (PAGE_READWRITE | PAGE_READONLY)) + else if (protect & (PAGE_READWRITE | PAGE_READONLY)) acs = FILE_MAP_READ; else { |