ntdll/tests: Fix a backtrace test failure on Windows ARM64.

This commit is contained in:
Alexandre Julliard 2024-03-12 20:49:54 +01:00
parent 99aee076e5
commit ffade87df1

View file

@ -10294,7 +10294,7 @@ static void test_backtrace(void)
ULONG hash, hash_expect;
int i, count = RtlCaptureStackBackTrace( 0, 1024, buffer, &hash );
ok( count > 1, "got %u entries\n", count );
ok( count > 0, "got %u entries\n", count );
for (i = hash_expect = 0; i < count; i++) hash_expect += (ULONG_PTR)buffer[i];
ok( hash == hash_expect, "hash mismatch %lx / %lx\n", hash, hash_expect );
RtlPcToFileHeader( buffer[0], &module );
@ -10302,6 +10302,7 @@ static void test_backtrace(void)
module, GetModuleHandleA(0), buffer[0]);
if (count && !buffer[count - 1]) count--; /* win11 32-bit */
if (count <= 1) return;
RtlPcToFileHeader( buffer[count - 1], &module );
GetModuleFileNameW( module, name, ARRAY_SIZE(name) );
if ((p = wcsrchr( name, '\\' ))) p++;