summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-01-02 12:50:01 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-01-02 12:50:01 +0000
commit685181daebe6151915b363adc1dd9f4bda1af919 (patch)
tree2c15ac9a108080a55dfd0d144670e58bba0197c1 /plugins/Msg_Export
parent486e44e8b437030a48f8b661948388fdbc984f88 (diff)
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
Diffstat (limited to 'plugins/Msg_Export')
-rwxr-xr-xplugins/Msg_Export/src/FileViewer.cpp7
1 files changed, 3 insertions, 4 deletions
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 );