From 85b52d14bd39f352ab10c0d0cb6fb114aeeda8a4 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 28 Sep 2010 14:51:10 +0300 Subject: modified: commonheaders.h modified: messages.cpp modified: replacer.suo modified: replacer.vcproj modified: utilities.h --- messages.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'messages.cpp') diff --git a/messages.cpp b/messages.cpp index 7b2424e..369354c 100644 --- a/messages.cpp +++ b/messages.cpp @@ -61,6 +61,11 @@ int SendMsgSvc(WPARAM w, LPARAM l) TCHAR *tmp = mir_a2t(msg); wstring str = tmp; mir_free(tmp); + wstring str_low = str; + for(unsigned int i = 0; i< str_low.length(); i++) + { + str_low[i] = _totlower(str_low[i]); + } int i = 0; char setting[32]; @@ -104,7 +109,8 @@ int SendMsgSvc(WPARAM w, LPARAM l) { p1 = 0; wstring::size_type end = 0; - while((p1 = str.find(buf), p1) != wstring::npos) + CharLowerBuff(buf, _tcslen(buf)); + while((p1 = str_low.find(buf), p1) != wstring::npos) { if(p1 < end) break; -- cgit v1.2.3