aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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++)