Commit 2aa8463a authored by Jason Green's avatar Jason Green Committed by Alexandre Julliard

riched20: If outside of the richedit window, return earlier.

Prevents a crash when selecting text outside of a richedit control box.
parent 34e74ffc
......@@ -2597,6 +2597,8 @@ void ME_LinkNotify(ME_TextEditor *editor, UINT msg, WPARAM wParam, LPARAM lParam
x = (short)LOWORD(lParam);
y = (short)HIWORD(lParam);
nCharOfs = ME_CharFromPos(editor, x, y);
if (nCharOfs < 0) return;
ME_CursorFromCharOfs(editor, nCharOfs, &tmpCursor);
tmpRun = &tmpCursor.pRun->member.run;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment