aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-07-05 12:59:26 +0000
committernyamatongwe <unknown>2002-07-05 12:59:26 +0000
commit08715d659d326ff53460dec24f00c447f7a89bb6 (patch)
tree3be6521a359700756c1a357db5f8368802847a3e /src
parentd8d802c013a33d05bd808bca31e630f28fdc6742 (diff)
downloadscintilla-mirror-08715d659d326ff53460dec24f00c447f7a89bb6.tar.gz
Take no action for SCI_GETTEXT with wParam == 0.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index aa05775de..cc7b1b40d 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4137,6 +4137,8 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
{
if (lParam == 0)
return 0;
+ if (wParam == 0)
+ return 0;
char *ptr = CharPtrFromSPtr(lParam);
unsigned int iChar = 0;
for (; iChar < wParam - 1; iChar++)