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
fa940f59
Commit
fa940f59
authored
Nov 29, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Nov 29, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VirtualQuery should return 0 for all addresses >= 0xc0000000.
parent
147bc6d2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
virtual.c
memory/virtual.c
+6
-1
No files found.
memory/virtual.c
View file @
fa940f59
...
...
@@ -1031,6 +1031,7 @@ BOOL WINAPI VirtualProtectEx(
*
* RETURNS
* Number of bytes returned in information buffer
* or 0 if addr is >= 0xc0000000 (kernel space).
*/
DWORD
WINAPI
VirtualQuery
(
LPCVOID
addr
,
/* [in] Address of region */
...
...
@@ -1038,10 +1039,14 @@ DWORD WINAPI VirtualQuery(
DWORD
len
/* [in] Size of buffer */
)
{
FILE_VIEW
*
view
;
UINT
base
=
ROUND_ADDR
(
addr
)
;
UINT
base
;
UINT
alloc_base
=
0
;
UINT
size
=
0
;
if
(
addr
>=
(
void
*
)
0xc0000000
)
return
0
;
base
=
ROUND_ADDR
(
addr
);
/* Find the view containing the address */
EnterCriticalSection
(
&
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