richedit: Avoid comparing padding in cursor structures on memcmp.
diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
index 1cb44bc..33dbdaf 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -1493,7 +1493,8 @@
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)