mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-01 19:09:09 +00:00
Fix #13921, d95422561b
: [Win32] Don't try close an already closed event handle during destruction.
This commit is contained in:
@@ -1195,7 +1195,10 @@ void MusicDriver_DMusic::Stop()
|
|||||||
_music = nullptr;
|
_music = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
CloseHandle(_thread_event);
|
if (_thread_event != nullptr) {
|
||||||
|
CloseHandle(_thread_event);
|
||||||
|
_thread_event = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
CoUninitialize();
|
CoUninitialize();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user