Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2013-10-27 13:57:49 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2013-10-27 13:57:49 +0400
commita96e604ecdb59ba897e8b80bd9d66c6f297637f6 (patch)
treebc047040e89966d144ad997633abba491b9970ec /common
parent6722b63e32df192d4acfc482884060f80bd8139b (diff)
Cleanup and don't deadlock when the tray icon creation failed.
Diffstat (limited to 'common')
-rw-r--r--common/DSUtilLite/BaseTrayIcon.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/DSUtilLite/BaseTrayIcon.cpp b/common/DSUtilLite/BaseTrayIcon.cpp
index 0b5b8dc0..af14ed6b 100644
--- a/common/DSUtilLite/BaseTrayIcon.cpp
+++ b/common/DSUtilLite/BaseTrayIcon.cpp
@@ -118,6 +118,8 @@ DWORD CBaseTrayIcon::TrayMessageThread()
hr = CreateMessageWindow();
if (FAILED(hr)) {
DbgLog((LOG_TRACE, 10, L"CBaseTrayIcon::ThreadProc(): Failed to create message window"));
+ m_evSetupFinished.Set();
+ UnregisterClass(m_wszClassName, g_hInst);
return 1;
}
ASSERT(m_hWnd);