mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
win32/win32.c Fix PROT_EXEC bit flag check for FlushInstrucitonCache()
This commit is contained in:
parent
db547a3bc4
commit
d5fc3fa4db
Notes:
git
2021-12-30 21:16:48 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -8264,7 +8264,7 @@ rb_w32_mprotect(void *addr, size_t len, int prot)
|
|||
return -1;
|
||||
}
|
||||
*/
|
||||
if (prot | PROT_EXEC) {
|
||||
if (prot & PROT_EXEC) {
|
||||
if (!FlushInstructionCache(GetCurrentProcess(), addr, len)) {
|
||||
errno = rb_w32_map_errno(GetLastError());
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue