SWDEV-329646 - MicroStation app crash upon closing
Change-Id: I0ca272be42934ee96f45300fa06847cd74170f13
This commit is contained in:
committed by
AlexBin Xie
orang tua
a3fe0fafe2
melakukan
10648c4d70
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user