From 850259c4eab1a77d973af51cd3bd62fbbd09f591 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sun, 14 Dec 2014 04:23:01 +0000 Subject: SendMessage(... WM_GETTEXT ...) -> GetWindowText(...) git-svn-id: http://svn.miranda-ng.org/main/trunk@11389 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IEHistory/src/dlgHandlers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/IEHistory/src/dlgHandlers.cpp') diff --git a/plugins/IEHistory/src/dlgHandlers.cpp b/plugins/IEHistory/src/dlgHandlers.cpp index 1a8aa0f653..794f17fe88 100644 --- a/plugins/IEHistory/src/dlgHandlers.cpp +++ b/plugins/IEHistory/src/dlgHandlers.cpp @@ -647,7 +647,7 @@ INT_PTR CALLBACK SearchDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam if (type == SEARCH_TEXT) { //text search TCHAR text[2048]; //TODO buffer overrun - SendDlgItemMessage(hWnd, IDC_SEARCH_TEXT, WM_GETTEXT, SIZEOF(text), (LPARAM)text); + GetDlgItemText(hWnd, IDC_SEARCH_TEXT, text, SIZEOF(text)); searchResult = SearchHistory(data->contact, data->hLastFoundEvent, text, direction, type); } else { //time search -- cgit v1.2.3