Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f248440d
Commit
f248440d
authored
Jun 15, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use page_size instead of page_mask+1.
parent
9d5e09d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
virtual.c
dlls/ntdll/virtual.c
+2
-2
No files found.
dlls/ntdll/virtual.c
View file @
f248440d
...
...
@@ -1203,7 +1203,7 @@ NTSTATUS VIRTUAL_HandleFault( LPCVOID addr )
BYTE
vprot
=
view
->
prot
[((
const
char
*
)
page
-
(
const
char
*
)
view
->
base
)
>>
page_shift
];
if
(
vprot
&
VPROT_GUARD
)
{
VIRTUAL_SetProt
(
view
,
page
,
page_
mask
+
1
,
vprot
&
~
VPROT_GUARD
);
VIRTUAL_SetProt
(
view
,
page
,
page_
size
,
vprot
&
~
VPROT_GUARD
);
ret
=
STATUS_GUARD_PAGE_VIOLATION
;
}
}
...
...
@@ -1597,7 +1597,7 @@ NTSTATUS WINAPI NtQueryVirtualMemory( HANDLE process, LPCVOID addr,
if
(
view
->
protect
&
VPROT_IMAGE
)
info
->
Type
=
MEM_IMAGE
;
else
if
(
view
->
flags
&
VFLAG_VALLOC
)
info
->
Type
=
MEM_PRIVATE
;
else
info
->
Type
=
MEM_MAPPED
;
for
(
size
=
base
-
alloc_base
;
size
<
view
->
size
;
size
+=
page_
mask
+
1
)
for
(
size
=
base
-
alloc_base
;
size
<
view
->
size
;
size
+=
page_
size
)
if
(
view
->
prot
[
size
>>
page_shift
]
!=
vprot
)
break
;
}
RtlLeaveCriticalSection
(
&
csVirtual
);
...
...
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