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
5fc9ffd5
Commit
5fc9ffd5
authored
Dec 18, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Add a minimal PE image that XP is able to load.
parent
be59fb4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
loader.c
dlls/kernel32/tests/loader.c
+17
-1
No files found.
dlls/kernel32/tests/loader.c
View file @
5fc9ffd5
...
...
@@ -185,6 +185,14 @@ START_TEST(loader)
0
,
ERROR_SUCCESS
},
#if 0 /* not power of 2 alignments need more test cases */
{ &dos_header, sizeof(dos_header),
0, FIELD_OFFSET(IMAGE_OPTIONAL_HEADER, CheckSum), 0x300, 0x300,
1,
0,
ERROR_BAD_EXE_FORMAT /* alignment is not power of 2 */
},
#endif
{
&
dos_header
,
sizeof
(
dos_header
),
0
,
FIELD_OFFSET
(
IMAGE_OPTIONAL_HEADER
,
CheckSum
),
4
,
4
,
1
,
...
...
@@ -210,6 +218,14 @@ START_TEST(loader)
0x200
,
ERROR_SUCCESS
},
/* Minimal PE image that XP is able to load: 92 bytes */
{
&
dos_header
,
0x04
,
0
,
FIELD_OFFSET
(
IMAGE_OPTIONAL_HEADER
,
CheckSum
),
0x04
/* also serves as e_lfanew in the truncated MZ header */
,
0x04
,
1
,
0
,
ERROR_SUCCESS
}
};
static
const
char
filler
[
0x1000
];
static
const
char
section_data
[
0x10
]
=
"section data"
;
...
...
@@ -412,7 +428,7 @@ todo_wine {
ok
(
FreeLibrary
(
hlib
),
"FreeLibrary error %d
\n
"
,
GetLastError
());
}
else
{
/* LoadLibrary
has failed
*/
{
/* LoadLibrary
is expected to fail
*/
ok
(
!
hlib
,
"%d: LoadLibrary should fail
\n
"
,
i
);
if
(
GetLastError
()
==
ERROR_GEN_FAILURE
)
/* Win9x, broken behaviour */
...
...
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