SWDEV-329646 - MicroStation app crash upon closing

Change-Id: I0ca272be42934ee96f45300fa06847cd74170f13
This commit is contained in:
Alex (Bin) Xie
2022-04-20 12:02:52 -04:00
committed by AlexBin Xie
orang tua a3fe0fafe2
melakukan 10648c4d70
+3 -1
Melihat File
@@ -19,6 +19,7 @@
THE SOFTWARE. */
#include "thread/thread.hpp"
#include "platform/runtime.hpp"
#include <windows.h>
#include <iostream>
@@ -45,6 +46,7 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) {
#endif // DEBUG
break;
case DLL_PROCESS_DETACH:
amd::Runtime::setLibraryDetached();
break;
case DLL_THREAD_DETACH: {
amd::Thread* thread = amd::Thread::current();
@@ -54,4 +56,4 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) {
break;
}
return true;
}
}