[APPSHIM_APITEST] Fix test for x86 Vista and 7 (#8042)

On x86 builds, accept the sentinel hmodule instead of the 111 hmodule and 0 hmodule for Vista and 7.
This commit is contained in:
Carl J. Bialorucki 2025-05-27 16:11:42 -06:00 committed by GitHub
parent 7015c76c63
commit b627a42898
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -270,6 +270,14 @@ START_TEST(ignoreloadlib)
dwErrorMode = GetErrorMode();
trace("Error mode: 0x%x\n", dwErrorMode);
#ifdef _M_IX86
if (g_WinVersion > _WIN32_WINNT_WS03 && g_WinVersion < _WIN32_WINNT_WIN8)
{
g_h111 = g_hSentinelModule;
g_h0 = g_hSentinelModule;
}
#endif
for (n = 0; n < num_shims; ++n)
{
ok_str(hook[n].LibraryName, "KERNEL32.DLL");