summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-12 13:34:51 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-12 13:34:51 +0000
commit725e00eb2b70847f8eb9d96f3337b5ef1646171e (patch)
treeef684e442dce4b549fbc216903fb4b0126540e5f
parent5d0d8d687b6b5f9baccc6d7192fbb2f6883a7d54 (diff)
fix for the very rare crash on exit
git-svn-id: http://svn.miranda-ng.org/main/trunk@923 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/ExternalAPI/m_toptoolbar.h2
-rw-r--r--plugins/TabSRMM/include/mim.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ExternalAPI/m_toptoolbar.h b/plugins/ExternalAPI/m_toptoolbar.h
index dd664d4124..ee3e1d0038 100644
--- a/plugins/ExternalAPI/m_toptoolbar.h
+++ b/plugins/ExternalAPI/m_toptoolbar.h
@@ -10,8 +10,8 @@
#define TTBBF_SHOWTOOLTIP 0x0008
#define TTBBF_ISSEPARATOR 0x0020
#define TTBBF_ISLBUTTON 0x0040
-#define TTBBF_ASPUSHBUTTON 0x0080
#define TTBBF_ISSBUTTON 0x0100
+#define TTBBF_ASPUSHBUTTON 0x0200
typedef struct {
int cbSize;
diff --git a/plugins/TabSRMM/include/mim.h b/plugins/TabSRMM/include/mim.h
index 9bee54ffbd..712831fec2 100644
--- a/plugins/TabSRMM/include/mim.h
+++ b/plugins/TabSRMM/include/mim.h
@@ -110,12 +110,12 @@ public:
}
~CMimAPI() {
+ if (m_haveBufferedPaint)
+ m_pfnBufferedPaintUninit();
if (m_hUxTheme != 0)
FreeLibrary(m_hUxTheme);
if (m_hDwmApi != 0)
FreeLibrary(m_hDwmApi);
- if (m_haveBufferedPaint)
- m_pfnBufferedPaintUninit();
if (m_hChatLogLock != INVALID_HANDLE_VALUE)
CloseHandle(m_hChatLogLock);