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
f10b6f6c
Commit
f10b6f6c
authored
Jan 11, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Also test wrong architecture with matching 32/64 bitness.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5dbf2726
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
loader.c
dlls/kernel32/tests/loader.c
+11
-0
No files found.
dlls/kernel32/tests/loader.c
View file @
f10b6f6c
...
...
@@ -846,6 +846,17 @@ static void test_Loader(void)
switch
(
orig_machine
)
{
case
IMAGE_FILE_MACHINE_I386
:
nt_header
.
FileHeader
.
Machine
=
IMAGE_FILE_MACHINE_ARMNT
;
break
;
case
IMAGE_FILE_MACHINE_AMD64
:
nt_header
.
FileHeader
.
Machine
=
IMAGE_FILE_MACHINE_ARM64
;
break
;
case
IMAGE_FILE_MACHINE_ARMNT
:
nt_header
.
FileHeader
.
Machine
=
IMAGE_FILE_MACHINE_I386
;
break
;
case
IMAGE_FILE_MACHINE_ARM64
:
nt_header
.
FileHeader
.
Machine
=
IMAGE_FILE_MACHINE_AMD64
;
break
;
}
status
=
map_image_section
(
&
nt_header
,
__LINE__
);
ok
(
status
==
STATUS_INVALID_IMAGE_FORMAT
||
broken
(
status
==
STATUS_SUCCESS
),
/* win2k */
"NtCreateSection error %08x
\n
"
,
status
);
switch
(
orig_machine
)
{
case
IMAGE_FILE_MACHINE_I386
:
nt_header
.
FileHeader
.
Machine
=
IMAGE_FILE_MACHINE_AMD64
;
break
;
case
IMAGE_FILE_MACHINE_AMD64
:
nt_header
.
FileHeader
.
Machine
=
IMAGE_FILE_MACHINE_I386
;
break
;
case
IMAGE_FILE_MACHINE_ARMNT
:
nt_header
.
FileHeader
.
Machine
=
IMAGE_FILE_MACHINE_ARM64
;
break
;
...
...
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