Followup to 2c7b47ee5d and 50481d06d2.
[Test pattern page](https://test.winehq.org/data/patterns.html#ntdll:exception)
[Testbot run with this patch.](https://testbot.winehq.org/JobDetails.pl?Key=157964)
This makes 32-bit systems also take the upper branch of the if.
CC: @gofman, I hope this matches the purpose of the test?
-- v2: ntdll/tests: Make single step test succeed for 32-bit systems.
From: Bernhard Übelacker bernhardu@mailbox.org
Followup to 2c7b47ee5d and 50481d06d2. --- dlls/ntdll/tests/exception.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/tests/exception.c b/dlls/ntdll/tests/exception.c index 44343a6927b..514ad218274 100644 --- a/dlls/ntdll/tests/exception.c +++ b/dlls/ntdll/tests/exception.c @@ -419,7 +419,7 @@ static void test_single_step_address(void)
test_single_step_address_run(handler, 0);
- if (is_wow64) + if (sizeof(void*) == 4) ok(test_single_step_exc_address == (char *)code_mem + 1, "got %p, expected %p.\n", test_single_step_exc_address, (char *)code_mem + 1); else @@ -437,7 +437,7 @@ static void test_single_step_address(void)
test_single_step_address_run(handler, 3);
- if (is_wow64) + if (sizeof(void*) == 4) ok(test_single_step_exc_address == (char *)code_mem + 1, "got %p, expected %p.\n", test_single_step_exc_address, (char *)code_mem + 1); else
v2: - Remove the `is_wow64 || `, these should be also matched by the `sizeof(void*) == 4`.
[Testbot run with v2](https://testbot.winehq.org/JobDetails.pl?Key=157965)