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
517d0800
Commit
517d0800
authored
Nov 22, 2011
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Revert
33b0f0ed
.
The tests clearly show that this commit is wrong.
parent
27725915
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
17 deletions
+1
-17
loader.c
dlls/kernel32/tests/loader.c
+0
-10
virtual.c
dlls/ntdll/virtual.c
+1
-7
No files found.
dlls/kernel32/tests/loader.c
View file @
517d0800
...
...
@@ -691,11 +691,6 @@ static void test_section_access(void)
"%d: VirtualQuery error %d
\n
"
,
i
,
GetLastError
());
ok
(
info
.
BaseAddress
==
(
char
*
)
hlib
+
section
.
VirtualAddress
,
"%d: got %p != expected %p
\n
"
,
i
,
info
.
BaseAddress
,
(
char
*
)
hlib
+
section
.
VirtualAddress
);
ok
(
info
.
RegionSize
==
si
.
dwPageSize
,
"%d: got %#lx != expected %#x
\n
"
,
i
,
info
.
RegionSize
,
si
.
dwPageSize
);
/* FIXME: remove the condition below once Wine is fixed */
if
((
td
[
i
].
scn_file_access
&
IMAGE_SCN_MEM_WRITE
)
&&
(
td
[
i
].
scn_file_access
&
IMAGE_SCN_CNT_UNINITIALIZED_DATA
))
todo_wine
ok
(
info
.
Protect
==
td
[
i
].
scn_page_access
,
"%d: got %#x != expected %#x
\n
"
,
i
,
info
.
Protect
,
td
[
i
].
scn_page_access
);
else
ok
(
info
.
Protect
==
td
[
i
].
scn_page_access
,
"%d: got %#x != expected %#x
\n
"
,
i
,
info
.
Protect
,
td
[
i
].
scn_page_access
);
ok
(
info
.
AllocationBase
==
hlib
,
"%d: %p != %p
\n
"
,
i
,
info
.
AllocationBase
,
hlib
);
ok
(
info
.
AllocationProtect
==
PAGE_EXECUTE_WRITECOPY
,
"%d: %#x != PAGE_EXECUTE_WRITECOPY
\n
"
,
i
,
info
.
AllocationProtect
);
...
...
@@ -735,11 +730,6 @@ static void test_section_access(void)
"%d: VirtualQuery error %d
\n
"
,
i
,
GetLastError
());
ok
(
info
.
BaseAddress
==
(
char
*
)
hlib
+
section
.
VirtualAddress
,
"%d: got %p != expected %p
\n
"
,
i
,
info
.
BaseAddress
,
(
char
*
)
hlib
+
section
.
VirtualAddress
);
ok
(
info
.
RegionSize
==
si
.
dwPageSize
,
"%d: got %#lx != expected %#x
\n
"
,
i
,
info
.
RegionSize
,
si
.
dwPageSize
);
/* FIXME: remove the condition below once Wine is fixed */
if
((
td
[
i
].
scn_file_access
&
IMAGE_SCN_MEM_WRITE
)
&&
(
td
[
i
].
scn_file_access
&
IMAGE_SCN_CNT_UNINITIALIZED_DATA
))
todo_wine
ok
(
info
.
Protect
==
td
[
i
].
scn_page_access
,
"%d: got %#x != expected %#x
\n
"
,
i
,
info
.
Protect
,
td
[
i
].
scn_page_access
);
else
ok
(
info
.
Protect
==
td
[
i
].
scn_page_access
,
"%d: got %#x != expected %#x
\n
"
,
i
,
info
.
Protect
,
td
[
i
].
scn_page_access
);
ok
(
info
.
AllocationBase
==
hlib
,
"%d: %p != %p
\n
"
,
i
,
info
.
AllocationBase
,
hlib
);
ok
(
info
.
AllocationProtect
==
PAGE_EXECUTE_WRITECOPY
,
"%d: %#x != PAGE_EXECUTE_WRITECOPY
\n
"
,
i
,
info
.
AllocationProtect
);
...
...
dlls/ntdll/virtual.c
View file @
517d0800
...
...
@@ -1345,14 +1345,8 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
size
=
ROUND_SIZE
(
sec
->
VirtualAddress
,
sec
->
SizeOfRawData
);
if
(
sec
->
Characteristics
&
IMAGE_SCN_MEM_READ
)
vprot
|=
VPROT_READ
;
if
(
sec
->
Characteristics
&
IMAGE_SCN_MEM_WRITE
)
vprot
|=
VPROT_WRITECOPY
;
if
(
sec
->
Characteristics
&
IMAGE_SCN_MEM_EXECUTE
)
vprot
|=
VPROT_EXEC
;
if
(
sec
->
Characteristics
&
IMAGE_SCN_MEM_WRITE
)
{
if
(
sec
->
Characteristics
&
IMAGE_SCN_CNT_UNINITIALIZED_DATA
)
vprot
|=
VPROT_WRITE
;
else
vprot
|=
VPROT_WRITECOPY
;
}
/* Dumb game crack lets the AOEP point into a data section. Adjust. */
if
((
nt
->
OptionalHeader
.
AddressOfEntryPoint
>=
sec
->
VirtualAddress
)
&&
...
...
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