mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
ntdll/tests: Don't import kernel32.RtlPcToFileHeader.
kernel32.RtlPcToFileHeader is an export forwarder to ntdll.RtlPcToFileHeader and does not exist on Windows 8 or earlier. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56458
This commit is contained in:
parent
de265dfa0b
commit
fa7c837f91
1 changed files with 3 additions and 3 deletions
|
@ -10831,11 +10831,11 @@ static void test_backtrace(void)
|
|||
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 );
|
||||
pRtlPcToFileHeader( buffer[0], &module );
|
||||
if (is_arm64ec && module == hntdll) /* Windows arm64ec has an extra frame for the entry thunk */
|
||||
{
|
||||
ok( count > 1, "wrong count %u\n", count );
|
||||
RtlPcToFileHeader( buffer[1], &module );
|
||||
pRtlPcToFileHeader( buffer[1], &module );
|
||||
}
|
||||
GetModuleFileNameW( module, name, ARRAY_SIZE(name) );
|
||||
ok( module == GetModuleHandleA(0), "wrong module %p %s / %p for %p\n",
|
||||
|
@ -10855,7 +10855,7 @@ static void test_backtrace(void)
|
|||
|
||||
if (count && !buffer[count - 1]) count--; /* win11 32-bit */
|
||||
if (count <= 1) return;
|
||||
RtlPcToFileHeader( buffer[count - 1], &module );
|
||||
pRtlPcToFileHeader( buffer[count - 1], &module );
|
||||
GetModuleFileNameW( module, name, ARRAY_SIZE(name) );
|
||||
ok( module == hntdll, "wrong module %p %s for frame %u %p\n",
|
||||
module, debugstr_w(name), count - 1, buffer[count - 1] );
|
||||
|
|
Loading…
Reference in a new issue