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
8e013f9b
Commit
8e013f9b
authored
Apr 20, 2001
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 20, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VirtualProtect should return correct old protection flags.
parent
6044b985
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
virtual.c
memory/virtual.c
+3
-1
No files found.
memory/virtual.c
View file @
8e013f9b
...
...
@@ -968,6 +968,7 @@ BOOL WINAPI VirtualProtect(
FILE_VIEW
*
view
;
UINT
base
,
i
;
BYTE
vprot
,
*
p
;
DWORD
prot
;
TRACE
(
"%08x %08lx %08lx
\n
"
,
(
UINT
)
addr
,
size
,
new_prot
);
...
...
@@ -987,6 +988,7 @@ BOOL WINAPI VirtualProtect(
/* Make sure all the pages are committed */
p
=
view
->
prot
+
((
base
-
view
->
base
)
>>
page_shift
);
VIRTUAL_GetWin32Prot
(
*
p
,
&
prot
,
NULL
);
for
(
i
=
size
>>
page_shift
;
i
;
i
--
,
p
++
)
{
if
(
!
(
*
p
&
VPROT_COMMITTED
))
...
...
@@ -996,7 +998,7 @@ BOOL WINAPI VirtualProtect(
}
}
if
(
old_prot
)
VIRTUAL_GetWin32Prot
(
view
->
prot
[
0
],
old_prot
,
NULL
)
;
if
(
old_prot
)
*
old_prot
=
prot
;
vprot
=
VIRTUAL_GetProt
(
new_prot
)
|
VPROT_COMMITTED
;
return
VIRTUAL_SetProt
(
view
,
base
,
size
,
vprot
);
}
...
...
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