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
2e6651cb
Commit
2e6651cb
authored
Feb 23, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Fix a test failure when exception information is missing.
parent
af64a8bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
unwind.c
dlls/ntdll/tests/unwind.c
+5
-5
No files found.
dlls/ntdll/tests/unwind.c
View file @
2e6651cb
...
...
@@ -1583,6 +1583,9 @@ static void call_virtual_unwind_arm64( void *code_mem, int testnum, const struct
for
(
i
=
0
;
i
<
test
->
nb_results
;
i
++
)
{
#ifdef __x86_64__
if
(
test
->
results
[
i
].
handler
==
-
2
)
continue
;
/* skip invalid leaf function test */
#endif
winetest_push_context
(
"%u/%u"
,
testnum
,
i
);
memset
(
&
ctx_ptr
,
0x55
,
sizeof
(
ctx_ptr
)
);
memset
(
&
context
,
0x55
,
sizeof
(
context
)
);
...
...
@@ -1602,11 +1605,7 @@ static void call_virtual_unwind_arm64( void *code_mem, int testnum, const struct
data
=
(
void
*
)
0xdeadbeef
;
frame
=
0xdeadbeef
;
#ifdef __x86_64__
if
(
test
->
results
[
i
].
handler
==
-
2
)
continue
;
/* skip invalid leaf function test */
#else
if
(
test
->
results
[
i
].
handler
==
-
2
)
orig_pc
=
context
.
Lr
;
#endif
handler
=
RtlVirtualUnwind
(
UNW_FLAG_EHANDLER
,
(
ULONG64
)
code_mem
,
orig_pc
,
test
->
unwind_info
?
(
RUNTIME_FUNCTION
*
)
&
runtime_func
:
NULL
,
(
CONTEXT
*
)
&
context
,
&
data
,
&
frame
,
&
ctx_ptr
);
...
...
@@ -3226,12 +3225,13 @@ static void test_dynamic_unwind(void)
ok
(
base
==
0xdeadbeef
,
"RtlLookupFunctionTable wrong base, got: %Ix
\n
"
,
base
);
base
=
0xdeadbeef
;
len
=
0xdeadbeef
;
func
=
pRtlLookupFunctionTable
(
(
ULONG_PTR
)
pRtlLookupFunctionEntry
,
&
base
,
&
len
);
ok
(
base
==
(
ULONG_PTR
)
GetModuleHandleA
(
"ntdll.dll"
),
"RtlLookupFunctionTable wrong base, got: %Ix / %p
\n
"
,
base
,
GetModuleHandleA
(
"ntdll.dll"
)
);
ptr
=
RtlImageDirectoryEntryToData
(
(
void
*
)
base
,
TRUE
,
IMAGE_DIRECTORY_ENTRY_EXCEPTION
,
&
len2
);
ok
(
func
==
ptr
,
"RtlLookupFunctionTable wrong table, got: %p / %p
\n
"
,
func
,
ptr
);
ok
(
len
==
len2
,
"RtlLookupFunctionTable wrong len, got: %lu / %lu
\n
"
,
len
,
len2
);
ok
(
len
==
len2
||
!
ptr
,
"RtlLookupFunctionTable wrong len, got: %lu / %lu
\n
"
,
len
,
len2
);
pRtlDeleteGrowableFunctionTable
(
growable_table
);
...
...
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