summaryrefslogtreecommitdiff
path: root/messages.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-09-28 14:51:10 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-09-28 14:51:10 +0300
commit85b52d14bd39f352ab10c0d0cb6fb114aeeda8a4 (patch)
tree9b79447f25cbf1b3f663c02144d8d9cb771e8eba /messages.cpp
parentdcf36bc803916561f01febeedb76501d3fe3f729 (diff)
modified: commonheaders.h
modified: messages.cpp modified: replacer.suo modified: replacer.vcproj modified: utilities.h
Diffstat (limited to 'messages.cpp')
-rw-r--r--messages.cpp8
1 files changed, 7 insertions, 1 deletions
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;