summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-06-29 16:46:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-06-29 16:46:25 +0300
commit5c272fb331e50049bffda46aa120c159e983a6d7 (patch)
treee4ae6a031e85774d302c760a14e0702e45e99edf /src/mir_core
parentc053264e73a9ce72ca1ebf89c795f0939f4d74ea (diff)
Toaster: hard times need hard ways
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/Windows/miranda.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mir_core/src/Windows/miranda.cpp b/src/mir_core/src/Windows/miranda.cpp
index 7446eb1ba0..f7d8571191 100644
--- a/src/mir_core/src/Windows/miranda.cpp
+++ b/src/mir_core/src/Windows/miranda.cpp
@@ -356,7 +356,13 @@ MIR_CORE_DLL(void) EnterMessageLoop()
MIR_CORE_DLL(void) LeaveMessageLoop()
{
- OleUninitialize();
+ // Dragons live there...
+ __try {
+ OleUninitialize();
+ }
+ __except (EXCEPTION_EXECUTE_HANDLER)
+ {
+ }
if (bufferedPaintUninit) {
bufferedPaintUninit();