From 685181daebe6151915b363adc1dd9f4bda1af919 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Wed, 2 Jan 2013 12:50:01 +0000 Subject: Try to fix unicode search (by $ergi0) (fixes #65) git-svn-id: http://svn.miranda-ng.org/main/trunk@2914 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Msg_Export/src/FileViewer.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/Msg_Export') diff --git a/plugins/Msg_Export/src/FileViewer.cpp b/plugins/Msg_Export/src/FileViewer.cpp index 465137a8c6..8088f7e0bc 100755 --- a/plugins/Msg_Export/src/FileViewer.cpp +++ b/plugins/Msg_Export/src/FileViewer.cpp @@ -930,19 +930,18 @@ LRESULT CALLBACK EditSubclassProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP return 0; } - FINDTEXT ft = { 0 }; - if( fr->Flags & FR_FINDNEXT) { + FINDTEXT ft = { 0 }; ft.lpstrText = fr->lpstrFindWhat; SendMessage(hwnd, EM_EXGETSEL, 0, (LPARAM)&ft.chrg); ft.chrg.cpMin = ft.chrg.cpMax+1; ft.chrg.cpMax = -1; - LRESULT res = SendMessage(hwnd, EM_FINDTEXT, (WPARAM)fr->Flags,(LPARAM)&ft); + LRESULT res = SendMessage(hwnd, EM_FINDTEXTW, (WPARAM)fr->Flags,(LPARAM)&ft); if(res == -1) { ft.chrg.cpMin = 0; - res = (int)SendMessage(hwnd, EM_FINDTEXT, (WPARAM)fr->Flags,(LPARAM)&ft); + res = (int)SendMessage(hwnd, EM_FINDTEXTW, (WPARAM)fr->Flags,(LPARAM)&ft); if(res == -1) { MessageBox( hwnd , LPGENT("Search string was not found !"),MSG_BOX_TITEL,MB_OK ); -- cgit v1.2.3