mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
Revert "fix: skip cleanup in DllMain when terminating process"
This reverts commit 0b5c9125ac.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
86bca656ea
commit
890182b093
@@ -17,14 +17,10 @@ BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
|
||||
L0::globalDriverSetup();
|
||||
}
|
||||
if (fdwReason == DLL_PROCESS_DETACH) {
|
||||
/* If lpvReserved is non-NULL with DLL_PROCESS_DETACH, the process is terminating,
|
||||
* cleanup should be skipped according to the DllMain spec. */
|
||||
if (!lpvReserved) {
|
||||
L0::globalDriverTeardown();
|
||||
if (L0::globalOsSysmanDriver != nullptr) {
|
||||
delete L0::globalOsSysmanDriver;
|
||||
L0::globalOsSysmanDriver = nullptr;
|
||||
}
|
||||
L0::globalDriverTeardown();
|
||||
if (L0::globalOsSysmanDriver != nullptr) {
|
||||
delete L0::globalOsSysmanDriver;
|
||||
L0::globalOsSysmanDriver = nullptr;
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user