[RTL] Notify verifier when freeing the process page heap

This commit is contained in:
Mark Jansen
2025-03-25 16:23:39 +01:00
parent 5821136dfa
commit 08d575adf9
+6 -1
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;
}