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
8ddab2c2
Commit
8ddab2c2
authored
Jun 05, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jun 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix status code when NtMapViewOfSection parameter check fails.
parent
5204d89d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
virtual.c
dlls/kernel32/tests/virtual.c
+0
-3
virtual.c
dlls/ntdll/virtual.c
+1
-1
No files found.
dlls/kernel32/tests/virtual.c
View file @
8ddab2c2
...
...
@@ -1072,7 +1072,6 @@ static void test_NtMapViewOfSection(void)
size
=
0
;
offset
.
QuadPart
=
1
;
status
=
pNtMapViewOfSection
(
mapping
,
hProcess
,
&
ptr2
,
0
,
0
,
&
offset
,
&
size
,
1
,
0
,
PAGE_READWRITE
);
todo_wine
ok
(
status
==
STATUS_MAPPED_ALIGNMENT
,
"NtMapViewOfSection returned %x
\n
"
,
status
);
/* ptr has to be aligned */
...
...
@@ -1080,7 +1079,6 @@ static void test_NtMapViewOfSection(void)
size
=
0
;
offset
.
QuadPart
=
0
;
status
=
pNtMapViewOfSection
(
mapping
,
hProcess
,
&
ptr2
,
0
,
0
,
&
offset
,
&
size
,
1
,
0
,
PAGE_READWRITE
);
todo_wine
ok
(
status
==
STATUS_MAPPED_ALIGNMENT
,
"NtMapViewOfSection returned %x
\n
"
,
status
);
/* still not 64k aligned */
...
...
@@ -1088,7 +1086,6 @@ static void test_NtMapViewOfSection(void)
size
=
0
;
offset
.
QuadPart
=
0
;
status
=
pNtMapViewOfSection
(
mapping
,
hProcess
,
&
ptr2
,
0
,
0
,
&
offset
,
&
size
,
1
,
0
,
PAGE_READWRITE
);
todo_wine
ok
(
status
==
STATUS_MAPPED_ALIGNMENT
,
"NtMapViewOfSection returned %x
\n
"
,
status
);
/* zero_bits != 0 is not allowed when an address is set */
...
...
dlls/ntdll/virtual.c
View file @
8ddab2c2
...
...
@@ -2602,7 +2602,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
/* Check parameters */
if
((
offset
.
u
.
LowPart
&
mask
)
||
(
*
addr_ptr
&&
((
UINT_PTR
)
*
addr_ptr
&
mask
)))
return
STATUS_
INVALID_PARAMETER
;
return
STATUS_
MAPPED_ALIGNMENT
;
switch
(
protect
)
{
...
...
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