summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src/FileViewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Msg_Export/src/FileViewer.cpp')
-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 );