Commit e306b913 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

richedit: Avoid comparing padding in cursor structures on memcmp.

parent da1e7a72
......@@ -1493,7 +1493,8 @@ static void ME_ArrowCtrlEnd(ME_TextEditor *editor, ME_Cursor *pCursor)
BOOL ME_IsSelection(ME_TextEditor *editor)
{
return memcmp(&editor->pCursors[0], &editor->pCursors[1], sizeof(ME_Cursor))!=0;
return editor->pCursors[0].pRun != editor->pCursors[1].pRun ||
editor->pCursors[0].nOffset != editor->pCursors[1].nOffset;
}
static int ME_GetSelCursor(ME_TextEditor *editor, int dir)
......
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