From f2e1643ee2763008bda8992b31ac3e4410ed28d1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Mar 2014 21:02:15 +0000 Subject: Scriver: fix for unsubclassing problems git-svn-id: http://svn.miranda-ng.org/main/trunk@8798 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Scriver/src/chat/window.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/Scriver/src/chat/window.cpp') diff --git a/plugins/Scriver/src/chat/window.cpp b/plugins/Scriver/src/chat/window.cpp index 764e658d81..31bf4117c3 100644 --- a/plugins/Scriver/src/chat/window.cpp +++ b/plugins/Scriver/src/chat/window.cpp @@ -539,7 +539,7 @@ static LRESULT CALLBACK MessageSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, } break; - case EM_UNSUBCLASSED: + case WM_DESTROY: mir_free(dat->szSearchQuery); mir_free(dat->szSearchResult); mir_free(dat); @@ -2013,7 +2013,6 @@ LABEL_SHOWWINDOW: NotifyLocalWinEvent(si->hContact, hwndDlg, MSG_WINDOW_EVT_CLOSING); si->hWnd = NULL; SetWindowLongPtr(hwndDlg, GWLP_USERDATA, 0); - SendDlgItemMessage(hwndDlg, IDC_CHAT_MESSAGE, EM_UNSUBCLASSED, 0, 0); SendMessage(GetParent(hwndDlg), CM_REMOVECHILD, 0, (LPARAM)hwndDlg); if (si->windowData.hwndLog != NULL) { -- cgit v1.2.3