summaryrefslogtreecommitdiff
path: root/plugins/SpellChecker/src/RichEdit.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-02-08 21:09:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-02-08 21:09:39 +0000
commit861cabec0529cc44e7d8741629bbfa9701dd40ad (patch)
treebab57f5e51b3b6e2c830ebe7bab15af8fdd05fbf /plugins/SpellChecker/src/RichEdit.cpp
parent1451c41ce6f6f6921c70bcfe0aea52ae48ffc515 (diff)
- crash fix in hunspell
- warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@3493 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SpellChecker/src/RichEdit.cpp')
-rw-r--r--plugins/SpellChecker/src/RichEdit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SpellChecker/src/RichEdit.cpp b/plugins/SpellChecker/src/RichEdit.cpp
index b19e037c72..0b24ce48f9 100644
--- a/plugins/SpellChecker/src/RichEdit.cpp
+++ b/plugins/SpellChecker/src/RichEdit.cpp
@@ -150,7 +150,7 @@ int RichEdit::GetLineCount() const
void RichEdit::GetLine(int line, TCHAR *text, size_t text_len) const
{
- *((WORD*)text) = text_len - 1;
+ *((WORD*)text) = WORD(text_len - 1);
unsigned size = (unsigned) SendMessage(EM_GETLINE, (WPARAM) line, (LPARAM) text);
// Sometimes it likes to return size = lineLen+1, adding an \n at the end, so we remove it here
// to make both implementations return same size