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
556ba38d
Commit
556ba38d
authored
Feb 27, 2018
by
Michael Müller
Committed by
Alexandre Julliard
Feb 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix error code when querying too large memory address.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1cee60d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
info.c
dlls/ntdll/tests/info.c
+4
-0
virtual.c
dlls/ntdll/virtual.c
+1
-1
No files found.
dlls/ntdll/tests/info.c
View file @
556ba38d
...
...
@@ -1868,6 +1868,10 @@ static void test_queryvirtualmemory(void)
"mbi.Protect is 0x%x
\n
"
,
mbi
.
Protect
);
}
else
skip
(
"bss is outside of module
\n
"
);
/* this can happen on Mac OS */
/* check error code when addr is higher than working set limit */
status
=
pNtQueryVirtualMemory
(
NtCurrentProcess
(),
(
void
*
)
~
0
,
MemoryBasicInformation
,
&
mbi
,
sizeof
(
mbi
),
&
readcount
);
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"Expected STATUS_INVALID_PARAMETER, got %08x
\n
"
,
status
);
}
static
void
test_affinity
(
void
)
...
...
dlls/ntdll/virtual.c
View file @
556ba38d
...
...
@@ -2845,7 +2845,7 @@ NTSTATUS WINAPI NtQueryVirtualMemory( HANDLE process, LPCVOID addr,
base
=
ROUND_ADDR
(
addr
,
page_mask
);
if
(
is_beyond_limit
(
base
,
1
,
working_set_limit
))
return
STATUS_
WORKING_SET_LIMIT_RANGE
;
if
(
is_beyond_limit
(
base
,
1
,
working_set_limit
))
return
STATUS_
INVALID_PARAMETER
;
/* Find the view containing the address */
...
...
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