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-22 17:09:36 +0100 |
commit | 50f06dbdb157fe26a83e6e5a8e8d8fa66d9f5d80 (patch) | |
tree | ae5c250391400d421297881d1a3a6018adf56beb /src/lib/evil | |
parent | 3f7bf360461938b3051378e8dbcc45e9c6c07939 (diff) | |
download | efl-50f06dbdb157fe26a83e6e5a8e8d8fa66d9f5d80.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>
Diffstat (limited to 'src/lib/evil')
-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 { |