From dcb3f2b149999d90633a1f41d91b0078c396fa67 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 3 Jan 2018 14:10:30 +0100 Subject: [PATCH] Fixed: Send an Unicode empty string --HG-- branch : develop --- code/nel/src/misc/win_displayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/src/misc/win_displayer.cpp b/code/nel/src/misc/win_displayer.cpp index b157448ec..d350f25f3 100644 --- a/code/nel/src/misc/win_displayer.cpp +++ b/code/nel/src/misc/win_displayer.cpp @@ -502,7 +502,7 @@ void CWinDisplayer::clear () SendMessageW (_HEdit, EM_SETSEL, 0, nIndex); // clear all the text - SendMessageW (_HEdit, EM_REPLACESEL, FALSE, (LPARAM) ""); + SendMessageW (_HEdit, EM_REPLACESEL, FALSE, (LPARAM) L""); SendMessageW(_HEdit,EM_SETMODIFY,(WPARAM)TRUE,(LPARAM)0); @@ -575,7 +575,7 @@ void CWinDisplayer::display_main () LRESULT oldIndex2 = SendMessageW (_HEdit, EM_LINEINDEX, nblineremove, 0); //nlassert (oldIndex2 != -1); SendMessageW (_HEdit, EM_SETSEL, oldIndex1, oldIndex2); - SendMessageW (_HEdit, EM_REPLACESEL, FALSE, (LPARAM) ""); + SendMessageW (_HEdit, EM_REPLACESEL, FALSE, (LPARAM) L""); // update the selection due to the erasing sint dt = (sint)(oldIndex2 - oldIndex1);