Author: hbelusca
Date: Sat May 4 21:03:27 2013
New Revision: 58931
URL:
http://svn.reactos.org/svn/reactos?rev=58931&view=rev
Log:
[CONSRV]
Add heap diagnostic flags for the ConSrvHeap.
Modified:
trunk/reactos/win32ss/user/consrv/init.c
Modified: trunk/reactos/win32ss/user/consrv/init.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/consrv/init.c…
==============================================================================
--- trunk/reactos/win32ss/user/consrv/init.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/consrv/init.c [iso-8859-1] Sat May 4 21:03:27 2013
@@ -484,7 +484,12 @@
// HACK: To try to uncover a heap corruption in CONSRV, use our own heap
// instead of the CSR heap, so that we won't corrupt it.
// ConSrvHeap = RtlGetProcessHeap();
- ConSrvHeap = RtlCreateHeap(HEAP_GROWABLE, NULL, 0, 0, NULL, NULL);
+ ConSrvHeap = RtlCreateHeap(HEAP_GROWABLE |
+ HEAP_PROTECTION_ENABLED |
+ HEAP_FREE_CHECKING_ENABLED |
+ HEAP_TAIL_CHECKING_ENABLED |
+ HEAP_VALIDATE_ALL_ENABLED,
+ NULL, 0, 0, NULL, NULL);
if (!ConSrvHeap) return STATUS_NO_MEMORY;
ConSrvInitConsoleSupport();