2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Merge branch '2519-disable-assertion-in-DLL_THREAD_ATTACH-DLL_THREAD_DETACH' into 'main'

Disable safe-guard assertion in DLL_THREAD_ATTACH/DLL_THREAD_DETACH

Closes #2519

See merge request isc-projects/bind9!4738
This commit is contained in:
Ondřej Surý
2021-02-24 08:03:16 +00:00

View File

@@ -30,10 +30,6 @@ __declspec(dllexport) BOOL WINAPI
* LoadLibrary.
*/
case DLL_PROCESS_ATTACH:
/*
* Disable DllMain() invocation on Thread creation/destruction
*/
DisableThreadLibraryCalls(hinstDLL);
isc__mem_initialize();
isc__tls_initialize();
break;
@@ -49,12 +45,6 @@ __declspec(dllexport) BOOL WINAPI
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
/*
* Calling DllMain when attaching/detaching process has been
* disabled.
*/
INSIST(0);
ISC_UNREACHABLE();
break;
default: