Author: pschweitzer
Date: Mon Oct 12 17:43:42 2015
New Revision: 69516
URL:
http://svn.reactos.org/svn/reactos?rev=69516&view=rev
Log:
[NTDLL_APITEST]
Fix test
Spotted by Alex
Modified:
trunk/rostests/apitests/ntdll/RtlAllocateHeap.c
Modified: trunk/rostests/apitests/ntdll/RtlAllocateHeap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/ntdll/RtlAllocat…
==============================================================================
--- trunk/rostests/apitests/ntdll/RtlAllocateHeap.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/ntdll/RtlAllocateHeap.c [iso-8859-1] Mon Oct 12 17:43:42 2015
@@ -23,7 +23,7 @@
{
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 @@
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 @@
{
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 @@
RtlDestroyHeap(hHeap);
- ok(Aligned == FALSE, "No unaligned address returned\n");
+ ok(Aligned == TRUE, "Unaligned address returned\n");
}