ntdll/tests: Fix a backtrace test failure on Windows ARM64.
This commit is contained in:
parent
99aee076e5
commit
ffade87df1
1 changed files with 2 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Reference in a new issue