ntdll/tests: Fix exception test failures on x86_64.
This commit is contained in:
parent
1d6bf952d3
commit
dd0e9fe91e
|
@ -2684,6 +2684,7 @@ PRUNTIME_FUNCTION WINAPI RtlLookupFunctionEntry( ULONG64 pc, ULONG64 *base, UNWI
|
||||||
func = lookup_function_info( pc, base, &module );
|
func = lookup_function_info( pc, base, &module );
|
||||||
if (!func)
|
if (!func)
|
||||||
{
|
{
|
||||||
|
*base = 0;
|
||||||
if (module)
|
if (module)
|
||||||
WARN( "no exception table found in module %p pc %lx\n", module->BaseAddress, pc );
|
WARN( "no exception table found in module %p pc %lx\n", module->BaseAddress, pc );
|
||||||
else
|
else
|
||||||
|
|
|
@ -1487,8 +1487,8 @@ static void test_dynamic_unwind(void)
|
||||||
func = pRtlLookupFunctionEntry( (ULONG_PTR)code_mem + code_offset + 16, &base, NULL );
|
func = pRtlLookupFunctionEntry( (ULONG_PTR)code_mem + code_offset + 16, &base, NULL );
|
||||||
ok( func == NULL,
|
ok( func == NULL,
|
||||||
"RtlLookupFunctionEntry returned unexpected function, expected: NULL, got: %p\n", func );
|
"RtlLookupFunctionEntry returned unexpected function, expected: NULL, got: %p\n", func );
|
||||||
ok( base == 0xdeadbeef,
|
ok( !base || broken(base == 0xdeadbeef),
|
||||||
"RtlLookupFunctionEntry modified base address, expected: 0xdeadbeef, got: %lx\n", base );
|
"RtlLookupFunctionEntry modified base address, expected: 0, got: %lx\n", base );
|
||||||
|
|
||||||
/* Test with pointer inside of our function */
|
/* Test with pointer inside of our function */
|
||||||
base = 0xdeadbeef;
|
base = 0xdeadbeef;
|
||||||
|
@ -1546,8 +1546,8 @@ static void test_dynamic_unwind(void)
|
||||||
func = pRtlLookupFunctionEntry( (ULONG_PTR)code_mem + code_offset + 32, &base, NULL );
|
func = pRtlLookupFunctionEntry( (ULONG_PTR)code_mem + code_offset + 32, &base, NULL );
|
||||||
ok( func == NULL,
|
ok( func == NULL,
|
||||||
"RtlLookupFunctionEntry returned unexpected function, expected: NULL, got: %p\n", func );
|
"RtlLookupFunctionEntry returned unexpected function, expected: NULL, got: %p\n", func );
|
||||||
ok( base == 0xdeadbeef,
|
ok( !base || broken(base == 0xdeadbeef),
|
||||||
"RtlLookupFunctionEntry modified base address, expected: 0xdeadbeef, got: %lx\n", base );
|
"RtlLookupFunctionEntry modified base address, expected: 0, got: %lx\n", base );
|
||||||
ok( !count,
|
ok( !count,
|
||||||
"RtlLookupFunctionEntry issued %d unexpected calls to dynamic_unwind_callback\n", count );
|
"RtlLookupFunctionEntry issued %d unexpected calls to dynamic_unwind_callback\n", count );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue