Hans Leidekker : advapi32/tests: Skip WoW64 registry tests on 32-bit.
Module: wine Branch: master Commit: 2ad2ad035dd206ef5f34121776df911a4a2b8248 URL: https://gitlab.winehq.org/wine/wine/-/commit/2ad2ad035dd206ef5f34121776df911... Author: Hans Leidekker <hans(a)codeweavers.com> Date: Wed Oct 25 21:54:50 2023 +0200 advapi32/tests: Skip WoW64 registry tests on 32-bit. --- dlls/advapi32/tests/registry.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c index c45509ecddf..29b1aff6b74 100644 --- a/dlls/advapi32/tests/registry.c +++ b/dlls/advapi32/tests/registry.c @@ -62,6 +62,7 @@ static DWORD (WINAPI *pEnumDynamicTimeZoneInformation)(const DWORD, DYNAMIC_TIME_ZONE_INFORMATION*); static BOOL limited_user; +static const BOOL is_64bit = sizeof(void *) > sizeof(int); static const char *dbgstr_SYSTEMTIME(const SYSTEMTIME *st) { @@ -1163,9 +1164,9 @@ static void test_reg_open_key(void) * the registry access check is performed correctly. Redirection isn't * being tested, so the tests don't care about whether the process is * running under WOW64. */ - if (!pIsWow64Process) + if (!is_64bit) { - win_skip("WOW64 flags are not recognized\n"); + skip("Not running WoW64 tests on 32-bit\n"); return; }
participants (1)
-
Alexandre Julliard