diff options
Diffstat (limited to 'messages.cpp')
-rw-r--r-- | messages.cpp | 8 |
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; |