Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e16996bb
Commit
e16996bb
authored
Oct 08, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Oct 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: reset_write_watches shouldn't remove enforced exec permissions.
parent
aa3c6111
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
virtual.c
dlls/kernel32/tests/virtual.c
+1
-5
virtual.c
dlls/ntdll/virtual.c
+2
-2
No files found.
dlls/kernel32/tests/virtual.c
View file @
e16996bb
...
...
@@ -2112,11 +2112,7 @@ static void test_atl_thunk_emulation( ULONG dep_flags )
ret
=
send_message_excpt
(
hWnd
,
WM_USER
,
0
,
0
);
ok
(
ret
==
42
,
"call returned wrong result, expected 42, got %d
\n
"
,
ret
);
ok
(
num_guard_page_calls
==
0
,
"expected no STATUS_GUARD_PAGE_VIOLATION exception, got %d exceptions
\n
"
,
num_guard_page_calls
);
if
(
dep_flags
&
MEM_EXECUTE_OPTION_DISABLE
)
ok
(
num_execute_fault_calls
==
0
,
"expected no STATUS_ACCESS_VIOLATION exception, got %d exceptions
\n
"
,
num_execute_fault_calls
);
else
todo_wine
ok
(
num_execute_fault_calls
==
0
,
"expected no STATUS_ACCESS_VIOLATION exception, got %d exceptions
\n
"
,
num_execute_fault_calls
);
ok
(
num_execute_fault_calls
==
0
,
"expected no STATUS_ACCESS_VIOLATION exception, got %d exceptions
\n
"
,
num_execute_fault_calls
);
/* Now a bit more complicated, the page containing the code is protected with
* PAGE_GUARD memory protection. */
...
...
dlls/ntdll/virtual.c
View file @
e16996bb
...
...
@@ -693,12 +693,12 @@ static void reset_write_watches( struct file_view *view, void *base, SIZE_T size
p
[
i
]
|=
VPROT_WRITEWATCH
;
prot
=
VIRTUAL_GetUnixProt
(
p
[
i
]
);
if
(
prot
==
unix_prot
)
continue
;
mprotect
(
addr
,
count
<<
page_shift
,
unix_pro
t
);
mprotect
_exec
(
addr
,
count
<<
page_shift
,
unix_prot
,
view
->
protec
t
);
addr
+=
count
<<
page_shift
;
unix_prot
=
prot
;
count
=
0
;
}
if
(
count
)
mprotect
(
addr
,
count
<<
page_shift
,
unix_pro
t
);
if
(
count
)
mprotect
_exec
(
addr
,
count
<<
page_shift
,
unix_prot
,
view
->
protec
t
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment