From f0e0f8df9afe935855724ae95e93093f04ca8e9a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 13 Jun 2012 22:42:50 +0000 Subject: fix for random crash in tooltips git-svn-id: http://svn.miranda-ng.org/main/trunk@403 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/button/button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/button') diff --git a/src/modules/button/button.cpp b/src/modules/button/button.cpp index 1c6bd79980..5bbc752d5d 100644 --- a/src/modules/button/button.cpp +++ b/src/modules/button/button.cpp @@ -476,7 +476,7 @@ static LRESULT CALLBACK MButtonWndProc(HWND hwndDlg, UINT msg, WPARAM wParam, L TTooltips *ptt = ( TTooltips* )mir_alloc( sizeof(TTooltips) ); ptt->ThreadId = tt.ThreadId; ptt->hwnd = CreateWindowEx(WS_EX_TOPMOST, TOOLTIPS_CLASS, _T(""), TTS_ALWAYSTIP, 0, 0, 0, 0, NULL, NULL, hMirandaInst, NULL); - lToolTips.insert(ptt, idx); + lToolTips.insert(ptt); bct->hwndToolTips = ptt->hwnd; } LeaveCriticalSection(&csTips); -- cgit v1.2.3