在 5/20/21 3:53 AM, Martin Storsjö 写道:
From: Liu Hao <[email protected]>`at_quick_exit()` was added in 7dda261ef062073eed4ed5b46effa3edd4a658fc. However it is not exported from any DLL, so we have to implement it ourselves. This uses `_crt_at_quick_exit` to register functions to call if called from an EXE, but does nothing if called from a DLL. In a DLL, we can't unregister the callbacks if the DLL gets unloaded. This also matches actual observed behaviour when using `at_quick_exit` from a DLL when built with MSVC with the -MD option. --- I kept the original author line, I hope that's ok with you, let me know if you want me to reset it to my author name instead.
Well I think you should. It was not I that composed the patch. :)
--- mingw-w64-crt/crt/ucrtbase_compat.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
-- Best regards, Liu Hao
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
