[RTL] Notify verifier when freeing the process page heap

This commit is contained in:
Mark Jansen 2020-04-11 14:22:11 +02:00
parent 5821136dfa
commit 08d575adf9

View file

@ -1686,7 +1686,12 @@ RtlpPageHeapDestroy(HANDLE HeapPtr)
/* Check if it's not a process heap */
if (HeapPtr == RtlGetProcessHeap())
{
DbgBreakPoint();
VERIFIER_STOP(APPLICATION_VERIFIER_DESTROY_PROCESS_HEAP,
"attempt to destroy process heap",
HeapPtr, "Heap handle",
0, "",
0, "",
0, "");
return NULL;
}