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
4ecc9788
Commit
4ecc9788
authored
Nov 12, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Nov 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Adjust NtAreMappedFilesTheSame to win8 behaviour.
parent
a890d0f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
virtual.c
dlls/kernel32/tests/virtual.c
+4
-2
virtual.c
dlls/ntdll/virtual.c
+2
-2
No files found.
dlls/kernel32/tests/virtual.c
View file @
4ecc9788
...
...
@@ -1053,10 +1053,12 @@ static void test_NtAreMappedFilesTheSame(void)
CloseHandle
(
file2
);
status
=
pNtAreMappedFilesTheSame
(
ptr
,
ptr
);
ok
(
status
==
STATUS_NOT_SAME_DEVICE
,
"NtAreMappedFilesTheSame returned %x
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
||
broken
(
status
==
STATUS_NOT_SAME_DEVICE
),
"NtAreMappedFilesTheSame returned %x
\n
"
,
status
);
status
=
pNtAreMappedFilesTheSame
(
ptr
,
(
char
*
)
ptr
+
30
);
ok
(
status
==
STATUS_NOT_SAME_DEVICE
,
"NtAreMappedFilesTheSame returned %x
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
||
broken
(
status
==
STATUS_NOT_SAME_DEVICE
),
"NtAreMappedFilesTheSame returned %x
\n
"
,
status
);
status
=
pNtAreMappedFilesTheSame
(
ptr
,
GetModuleHandleA
(
"kernel32.dll"
)
);
ok
(
status
==
STATUS_NOT_SAME_DEVICE
,
"NtAreMappedFilesTheSame returned %x
\n
"
,
status
);
...
...
dlls/ntdll/virtual.c
View file @
4ecc9788
...
...
@@ -2963,10 +2963,10 @@ NTSTATUS WINAPI NtAreMappedFilesTheSame(PVOID addr1, PVOID addr2)
status
=
STATUS_INVALID_ADDRESS
;
else
if
((
view1
->
protect
&
VPROT_VALLOC
)
||
(
view2
->
protect
&
VPROT_VALLOC
))
status
=
STATUS_CONFLICTING_ADDRESSES
;
else
if
(
!
(
view1
->
protect
&
VPROT_IMAGE
)
||
!
(
view2
->
protect
&
VPROT_IMAGE
))
status
=
STATUS_NOT_SAME_DEVICE
;
else
if
(
view1
==
view2
)
status
=
STATUS_SUCCESS
;
else
if
(
!
(
view1
->
protect
&
VPROT_IMAGE
)
||
!
(
view2
->
protect
&
VPROT_IMAGE
))
status
=
STATUS_NOT_SAME_DEVICE
;
else
if
(
!
stat_mapping_file
(
view1
,
&
st1
)
&&
!
stat_mapping_file
(
view2
,
&
st2
)
&&
st1
.
st_dev
==
st2
.
st_dev
&&
st1
.
st_ino
==
st2
.
st_ino
)
status
=
STATUS_SUCCESS
;
...
...
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