diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-10-27 13:57:49 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-10-27 13:57:49 +0400 |
commit | a96e604ecdb59ba897e8b80bd9d66c6f297637f6 (patch) | |
tree | bc047040e89966d144ad997633abba491b9970ec /common | |
parent | 6722b63e32df192d4acfc482884060f80bd8139b (diff) |
Cleanup and don't deadlock when the tray icon creation failed.
Diffstat (limited to 'common')
-rw-r--r-- | common/DSUtilLite/BaseTrayIcon.cpp | 2 |
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); |