ntdll/tests: Don't check the load address in the WoW64 case.
It could sometimes be NULL, such as win32k.sys on Win <= 7. Signed-off-by: Francois Gouget <fgouget@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
58ff2a0a88
commit
dcdd98f5c1
|
@ -490,7 +490,7 @@ static void test_query_module(void)
|
||||||
const SYSTEM_MODULE *module = &info->Modules[i];
|
const SYSTEM_MODULE *module = &info->Modules[i];
|
||||||
|
|
||||||
ok(module->LoadOrderIndex == i, "%u: got index %u\n", i, module->LoadOrderIndex);
|
ok(module->LoadOrderIndex == i, "%u: got index %u\n", i, module->LoadOrderIndex);
|
||||||
ok(!!module->ImageBaseAddress, "%u: got NULL address\n", i);
|
ok(module->ImageBaseAddress || is_wow64, "%u: got NULL address for %s\n", i, module->Name);
|
||||||
ok(module->ImageSize, "%u: got 0 size\n", i);
|
ok(module->ImageSize, "%u: got 0 size\n", i);
|
||||||
ok(module->LoadCount, "%u: got 0 load count\n", i);
|
ok(module->LoadCount, "%u: got 0 load count\n", i);
|
||||||
}
|
}
|
||||||
|
@ -516,7 +516,7 @@ static void test_query_module(void)
|
||||||
const SYSTEM_MODULE *module = &infoex->BaseInfo;
|
const SYSTEM_MODULE *module = &infoex->BaseInfo;
|
||||||
|
|
||||||
ok(module->LoadOrderIndex == i, "%u: got index %u\n", i, module->LoadOrderIndex);
|
ok(module->LoadOrderIndex == i, "%u: got index %u\n", i, module->LoadOrderIndex);
|
||||||
ok(!!module->ImageBaseAddress, "%u: got NULL address\n", i);
|
ok(module->ImageBaseAddress || is_wow64, "%u: got NULL address for %s\n", i, module->Name);
|
||||||
ok(module->ImageSize, "%u: got 0 size\n", i);
|
ok(module->ImageSize, "%u: got 0 size\n", i);
|
||||||
ok(module->LoadCount, "%u: got 0 load count\n", i);
|
ok(module->LoadCount, "%u: got 0 load count\n", i);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue