On Mon Nov 3 15:36:54 2025 +0000, Vibhav Pant wrote:
It might be too complicated, but would it be worth it to also have similar tests for non-TYPE_FLAG_WINRT classes to make sure ucrtbase does this for all C++ classes? Something like a destructor function `dtor`, using `cxx_exception_type` for `info`, and setting info->destructor to `dtor - ImageBase`.
FWIW I have tested it with other C++ exceptions. I've added this version of the patch because it's simpler. Yes, it can be extended if you think it's useful.