diff options
author | nyamatongwe <devnull@localhost> | 2005-10-20 00:16:09 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2005-10-20 00:16:09 +0000 |
commit | 37fe6daa20b6640a1fb34735b4d73bb3537973eb (patch) | |
tree | 02884fce13dc76f39d9b76a8e943fadeaa8ab746 | |
parent | 69d647192051beeaa40a6801f98b708526e98048 (diff) | |
download | scintilla-mirror-37fe6daa20b6640a1fb34735b4d73bb3537973eb.tar.gz |
Added assertion to detect incorrect wParam argument to SCI_GETCURLINE.
-rw-r--r-- | src/Editor.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index a710170b5..254c7e18d 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6206,6 +6206,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { if (lParam == 0) { return 1 + lineEnd - lineStart; } + PLATFORM_ASSERT(wParam > 0); char *ptr = CharPtrFromSPtr(lParam); unsigned int iPlace = 0; for (unsigned int iChar = lineStart; iChar < lineEnd && iPlace < wParam - 1; iChar++) { |