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
0abd795f
Commit
0abd795f
authored
Sep 25, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix loader tests on Windows ARM64.
parent
81c8c73d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
file.c
dlls/kernel32/tests/file.c
+7
-11
loader.c
dlls/kernel32/tests/loader.c
+0
-0
No files found.
dlls/kernel32/tests/file.c
View file @
0abd795f
...
@@ -2418,6 +2418,7 @@ static BOOL create_fake_dll( LPCSTR filename )
...
@@ -2418,6 +2418,7 @@ static BOOL create_fake_dll( LPCSTR filename )
nt
->
OptionalHeader
.
SizeOfImage
=
0x2000
;
nt
->
OptionalHeader
.
SizeOfImage
=
0x2000
;
nt
->
OptionalHeader
.
SizeOfHeaders
=
size
;
nt
->
OptionalHeader
.
SizeOfHeaders
=
size
;
nt
->
OptionalHeader
.
Subsystem
=
IMAGE_SUBSYSTEM_WINDOWS_GUI
;
nt
->
OptionalHeader
.
Subsystem
=
IMAGE_SUBSYSTEM_WINDOWS_GUI
;
nt
->
OptionalHeader
.
DllCharacteristics
=
IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE
|
IMAGE_DLLCHARACTERISTICS_NX_COMPAT
;
nt
->
OptionalHeader
.
NumberOfRvaAndSizes
=
IMAGE_NUMBEROF_DIRECTORY_ENTRIES
;
nt
->
OptionalHeader
.
NumberOfRvaAndSizes
=
IMAGE_NUMBEROF_DIRECTORY_ENTRIES
;
sec
=
(
IMAGE_SECTION_HEADER
*
)(
nt
+
1
);
sec
=
(
IMAGE_SECTION_HEADER
*
)(
nt
+
1
);
...
@@ -3126,17 +3127,11 @@ static void test_MapFile(void)
...
@@ -3126,17 +3127,11 @@ static void test_MapFile(void)
ok
(
hmap
==
NULL
,
"mapped zero size file
\n
"
);
ok
(
hmap
==
NULL
,
"mapped zero size file
\n
"
);
ok
(
GetLastError
()
==
ERROR_FILE_INVALID
,
"not ERROR_FILE_INVALID
\n
"
);
ok
(
GetLastError
()
==
ERROR_FILE_INVALID
,
"not ERROR_FILE_INVALID
\n
"
);
hmap
=
CreateFileMappingA
(
handle
,
NULL
,
PAGE_READWRITE
,
0x80000000
,
0
,
NULL
);
hmap
=
CreateFileMappingA
(
handle
,
NULL
,
PAGE_READWRITE
,
0x80000
,
0
,
NULL
);
ok
(
hmap
==
NULL
||
broken
(
hmap
!=
NULL
)
/* NT4 */
,
"mapping should fail
\n
"
);
ok
(
hmap
==
NULL
,
"mapping should fail
\n
"
);
/* GetLastError() varies between win9x and WinNT and also depends on the filesystem */
if
(
hmap
)
CloseHandle
(
hmap
);
hmap
=
CreateFileMappingA
(
handle
,
NULL
,
PAGE_READWRITE
,
0x80000000
,
0x10000
,
NULL
);
hmap
=
CreateFileMappingA
(
handle
,
NULL
,
PAGE_READWRITE
,
0x80000
,
0x10000
,
NULL
);
ok
(
hmap
==
NULL
||
broken
(
hmap
!=
NULL
)
/* NT4 */
,
"mapping should fail
\n
"
);
ok
(
hmap
==
NULL
,
"mapping should fail
\n
"
);
/* GetLastError() varies between win9x and WinNT and also depends on the filesystem */
if
(
hmap
)
CloseHandle
(
hmap
);
/* On XP you can now map again, on Win 95 you cannot. */
/* On XP you can now map again, on Win 95 you cannot. */
...
@@ -6047,7 +6042,8 @@ static void test_eof(void)
...
@@ -6047,7 +6042,8 @@ static void test_eof(void)
ok
(
!
ret
,
"expected failure
\n
"
);
ok
(
!
ret
,
"expected failure
\n
"
);
ok
(
GetLastError
()
==
ERROR_HANDLE_EOF
,
"got error %lu
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_HANDLE_EOF
,
"got error %lu
\n
"
,
GetLastError
());
ok
(
!
size
,
"got size %lu
\n
"
,
size
);
ok
(
!
size
,
"got size %lu
\n
"
,
size
);
todo_wine
ok
((
NTSTATUS
)
overlapped
.
Internal
==
STATUS_PENDING
,
"got status %#lx
\n
"
,
(
NTSTATUS
)
overlapped
.
Internal
);
ok
((
NTSTATUS
)
overlapped
.
Internal
==
STATUS_PENDING
||
(
NTSTATUS
)
overlapped
.
Internal
==
STATUS_END_OF_FILE
,
"got status %#lx
\n
"
,
(
NTSTATUS
)
overlapped
.
Internal
);
ok
(
!
overlapped
.
InternalHigh
,
"got size %Iu
\n
"
,
overlapped
.
InternalHigh
);
ok
(
!
overlapped
.
InternalHigh
,
"got size %Iu
\n
"
,
overlapped
.
InternalHigh
);
SetFilePointer
(
file
,
2
,
NULL
,
SEEK_SET
);
SetFilePointer
(
file
,
2
,
NULL
,
SEEK_SET
);
...
...
dlls/kernel32/tests/loader.c
View file @
0abd795f
This diff is collapsed.
Click to expand it.
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