summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-09-15 13:29:58 +0000
committermataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-09-15 13:29:58 +0000
commit04007636bc8f5ece651af428962471e4aa5d1b98 (patch)
treedb0b1a8ebcb6842a7cc6c318e21e3e16ca04d54b
parentb84e5d20b9e0d3f4e2b4a26573f66370491de782 (diff)
TranslitSwitcher:
fixed not all string showing when transliterate git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@166 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
-rw-r--r--TranslitSwitcher/Src/Layoutproc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/TranslitSwitcher/Src/Layoutproc.cpp b/TranslitSwitcher/Src/Layoutproc.cpp
index 1d7e8bd..74b0f1d 100644
--- a/TranslitSwitcher/Src/Layoutproc.cpp
+++ b/TranslitSwitcher/Src/Layoutproc.cpp
@@ -881,7 +881,7 @@ int OnButtonPressed(WPARAM wParam, LPARAM lParam)
}
else
{
- int FinalLen = slen + SIZEOF(dbv.ptszVal) + 1;
+ int FinalLen = lstrlen(sel) + SIZEOF(dbv.ptszVal) + 1;
TCHAR* FinalString = (TCHAR*)mir_alloc((FinalLen+1)*sizeof(TCHAR));
mir_sntprintf(FinalString, FinalLen, _T("%s %s"), dbv.ptszVal, sel);
SendMessage(hEdit, WM_SETTEXT, 0, (LPARAM)FinalString);