Skip to content

Commit b627a42

Browse files
authored
[APPSHIM_APITEST] Fix test for x86 Vista and 7 (reactos#8042)
On x86 builds, accept the sentinel hmodule instead of the 111 hmodule and 0 hmodule for Vista and 7.
1 parent 7015c76 commit b627a42

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/rostests/apitests/appshim/ignoreloadlib.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,14 @@ START_TEST(ignoreloadlib)
270270
dwErrorMode = GetErrorMode();
271271
trace("Error mode: 0x%x\n", dwErrorMode);
272272

273+
#ifdef _M_IX86
274+
if (g_WinVersion > _WIN32_WINNT_WS03 && g_WinVersion < _WIN32_WINNT_WIN8)
275+
{
276+
g_h111 = g_hSentinelModule;
277+
g_h0 = g_hSentinelModule;
278+
}
279+
#endif
280+
273281
for (n = 0; n < num_shims; ++n)
274282
{
275283
ok_str(hook[n].LibraryName, "KERNEL32.DLL");

0 commit comments

Comments
 (0)