On Mon Jun 16 14:05:33 2025 +0000, Nikolay Sivov wrote:
LdrShutdownThread() was an example of where RtlFreeThreadActivationContextStack() is called. What I meant was the you can't free such "unsafe" frame in a regular way.
I understand. I was saying maybe RtlFreeActivationContextStack should check the flag before calling RtlFreeHeap(). The flag may be some kind of marker. I will see if it's possible to test it.