Author: dchapyshev
Date: Sun Sep 25 16:57:55 2016
New Revision: 72801

URL: http://svn.reactos.org/svn/reactos?rev=72801&view=rev
Log:
[NTDLL_APITEST] Add test for invalid pointer

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/RtlAllocateHeap.c?rev=72801&r1=72800&r2=72801&view=diff
==============================================================================
--- trunk/rostests/apitests/ntdll/RtlAllocateHeap.c     [iso-8859-1] (original)
+++ trunk/rostests/apitests/ntdll/RtlAllocateHeap.c     [iso-8859-1] Sun Sep 25 
16:57:55 2016
@@ -62,4 +62,16 @@
     RtlDestroyHeap(hHeap);
 
     ok(Aligned == TRUE, "Unaligned address returned\n");
+
+    _SEH2_TRY
+    {
+        hHeap = RtlCreateHeap(HEAP_CREATE_ALIGN_16, NULL, 0, 0, NULL, 
(PRTL_HEAP_PARAMETERS)0xdeadbeef);
+    }
+    _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
+    {
+        hHeap = INVALID_HANDLE_VALUE;
+    }
+    _SEH2_END;
+
+    ok(hHeap == NULL, "Unexpected heap value: %p\n", hHeap);
 }


Reply via email to