mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:23:01 +00:00
[CONSRV]
Add heap diagnostic flags for the ConSrvHeap. svn path=/trunk/; revision=58931
This commit is contained in:
parent
800947d692
commit
819b46d5a8
1 changed files with 6 additions and 1 deletions
|
@ -484,7 +484,12 @@ CSR_SERVER_DLL_INIT(ConServerDllInitialization)
|
||||||
// HACK: To try to uncover a heap corruption in CONSRV, use our own heap
|
// 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.
|
// instead of the CSR heap, so that we won't corrupt it.
|
||||||
// ConSrvHeap = RtlGetProcessHeap();
|
// 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;
|
if (!ConSrvHeap) return STATUS_NO_MEMORY;
|
||||||
|
|
||||||
ConSrvInitConsoleSupport();
|
ConSrvInitConsoleSupport();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue