From 8e2442584c22f7eb3719eed0b44553ca063cd14c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 14 Nov 2024 17:52:50 +0100 Subject: [PATCH] ntdll/tests: Fix a test failure on 64-bit Windows. --- dlls/ntdll/tests/rtl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/ntdll/tests/rtl.c b/dlls/ntdll/tests/rtl.c index 7f6a8afbc5e..c7c10a8f46c 100644 --- a/dlls/ntdll/tests/rtl.c +++ b/dlls/ntdll/tests/rtl.c @@ -4052,10 +4052,9 @@ static void test_user_procs(void) status = pRtlInitializeNtUserPfn( dummy, size_A, dummy + 1, size_W, dummy + 2, size_workers ); if (!status) break; ok( status == STATUS_INVALID_PARAMETER, "RtlInitializeNtUserPfn failed %lx\n", status ); - status = pRtlResetNtUserPfn(); - ok( status == STATUS_INVALID_PARAMETER, "RtlResetNtUserPfn failed %lx\n", status ); } trace( "got sizes %lx %lx %lx\n", size_A, size_W, size_workers ); + if (!size_workers) return; /* something went wrong */ ok( !memcmp( ptrs, ptr_A, size_A ), "pointers changed by init\n" ); /* can't set twice without a reset */