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
c5fbb4a7
Commit
c5fbb4a7
authored
Apr 15, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Make the ExitProcess test work on x86_64.
parent
0d50e86f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
loader.c
dlls/kernel32/tests/loader.c
+8
-10
No files found.
dlls/kernel32/tests/loader.c
View file @
c5fbb4a7
...
...
@@ -408,7 +408,6 @@ static void test_Loader(void)
if
(
nt_header
.
OptionalHeader
.
SectionAlignment
>=
si
.
dwPageSize
)
{
const
char
*
start
;
int
size
;
start
=
(
const
char
*
)
hlib
+
nt_header
.
OptionalHeader
.
SizeOfHeaders
;
size
=
ALIGN_SIZE
((
ULONG_PTR
)
start
,
si
.
dwPageSize
)
-
(
ULONG_PTR
)
start
;
...
...
@@ -449,7 +448,6 @@ static void test_Loader(void)
if
(
nt_header
.
OptionalHeader
.
SectionAlignment
>=
si
.
dwPageSize
)
{
const
char
*
start
;
int
size
;
start
=
(
const
char
*
)
hlib
+
section
.
VirtualAddress
+
section
.
PointerToRawData
+
section
.
SizeOfRawData
;
size
=
ALIGN_SIZE
((
ULONG_PTR
)
start
,
si
.
dwPageSize
)
-
(
ULONG_PTR
)
start
;
...
...
@@ -1302,20 +1300,20 @@ static void child_process(const char *dll_name, DWORD target_offset)
static
void
test_ExitProcess
(
void
)
{
#include "pshpack1.h"
#ifdef
JMP_EAX
#ifdef
__x86_64__
static
struct
section_data
{
BYTE
mov_
eax
;
BYTE
mov_
rax
[
2
]
;
void
*
target
;
BYTE
jmp_
e
ax
[
2
];
}
section_data
=
{
0xb8
,
dll_entry_point
,
{
0xff
,
0xe0
}
};
BYTE
jmp_
r
ax
[
2
];
}
section_data
=
{
{
0x48
,
0xb8
}
,
dll_entry_point
,
{
0xff
,
0xe0
}
};
#else
static
struct
section_data
{
BYTE
push
;
BYTE
mov_eax
;
void
*
target
;
BYTE
ret
;
}
section_data
=
{
0x
68
,
dll_entry_point
,
0xc3
};
BYTE
jmp_eax
[
2
]
;
}
section_data
=
{
0x
b8
,
dll_entry_point
,
{
0xff
,
0xe0
}
};
#endif
#include "poppack.h"
static
const
char
filler
[
0x1000
];
...
...
@@ -1327,7 +1325,7 @@ static void test_ExitProcess(void)
PROCESS_INFORMATION
pi
;
STARTUPINFO
si
=
{
sizeof
(
si
)
};
#if
ndef __i386__
#if
!defined(__i386__) && !defined(__x86_64__)
skip
(
"x86 specific ExitProcess test
\n
"
);
return
;
#endif
...
...
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