ntdll/tests: Fix exception test failures on x86_64.

This commit is contained in:
Sebastian Lackner 2014-05-31 06:29:33 +02:00 committed by Alexandre Julliard
parent 1d6bf952d3
commit dd0e9fe91e
2 changed files with 5 additions and 4 deletions

View File

@ -2684,6 +2684,7 @@ PRUNTIME_FUNCTION WINAPI RtlLookupFunctionEntry( ULONG64 pc, ULONG64 *base, UNWI
func = lookup_function_info( pc, base, &module );
if (!func)
{
*base = 0;
if (module)
WARN( "no exception table found in module %p pc %lx\n", module->BaseAddress, pc );
else

View File

@ -1487,8 +1487,8 @@ static void test_dynamic_unwind(void)
func = pRtlLookupFunctionEntry( (ULONG_PTR)code_mem + code_offset + 16, &base, NULL );
ok( func == NULL,
"RtlLookupFunctionEntry returned unexpected function, expected: NULL, got: %p\n", func );
ok( base == 0xdeadbeef,
"RtlLookupFunctionEntry modified base address, expected: 0xdeadbeef, got: %lx\n", base );
ok( !base || broken(base == 0xdeadbeef),
"RtlLookupFunctionEntry modified base address, expected: 0, got: %lx\n", base );
/* Test with pointer inside of our function */
base = 0xdeadbeef;
@ -1546,8 +1546,8 @@ static void test_dynamic_unwind(void)
func = pRtlLookupFunctionEntry( (ULONG_PTR)code_mem + code_offset + 32, &base, NULL );
ok( func == NULL,
"RtlLookupFunctionEntry returned unexpected function, expected: NULL, got: %p\n", func );
ok( base == 0xdeadbeef,
"RtlLookupFunctionEntry modified base address, expected: 0xdeadbeef, got: %lx\n", base );
ok( !base || broken(base == 0xdeadbeef),
"RtlLookupFunctionEntry modified base address, expected: 0, got: %lx\n", base );
ok( !count,
"RtlLookupFunctionEntry issued %d unexpected calls to dynamic_unwind_callback\n", count );