From fedc72ff66df09c9a9445e4b1fff41def6faf314 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Mon, 12 Oct 2015 17:43:42 +0000 Subject: [PATCH] [NTDLL_APITEST] Fix test Spotted by Alex svn path=/trunk/; revision=69516 --- rostests/apitests/ntdll/RtlAllocateHeap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rostests/apitests/ntdll/RtlAllocateHeap.c b/rostests/apitests/ntdll/RtlAllocateHeap.c index b945d70ab1b..40ade2d2d52 100644 --- a/rostests/apitests/ntdll/RtlAllocateHeap.c +++ b/rostests/apitests/ntdll/RtlAllocateHeap.c @@ -23,7 +23,7 @@ START_TEST(RtlAllocateHeap) { Buffers[i] = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_CREATE_ALIGN_16, (i % 16 ) + 1); ASSERT(Buffers[i] != NULL); - if (!((ULONG_PTR)Buffers[i] & 0x2)) + if (!((ULONG_PTR)Buffers[i] & 0xF)) { Aligned = FALSE; } @@ -34,7 +34,7 @@ START_TEST(RtlAllocateHeap) RtlFreeHeap(RtlGetProcessHeap(), 0, Buffers[i]); } - ok(Aligned == FALSE, "No unaligned address returned\n"); + ok(Aligned == FALSE, "No unaligned address returned\n"); Aligned = TRUE; Parameters.Length = sizeof(Parameters); @@ -48,7 +48,7 @@ START_TEST(RtlAllocateHeap) { Buffers[i] = RtlAllocateHeap(hHeap, 0, (i % 16 ) + 1); ASSERT(Buffers[i] != NULL); - if (!((ULONG_PTR)Buffers[i] & 0x2)) + if (!((ULONG_PTR)Buffers[i] & 0xF)) { Aligned = FALSE; } @@ -61,5 +61,5 @@ START_TEST(RtlAllocateHeap) RtlDestroyHeap(hHeap); - ok(Aligned == FALSE, "No unaligned address returned\n"); + ok(Aligned == TRUE, "Unaligned address returned\n"); } -- 2.17.1