[PATCH] richedit: clear modify step flag before any notifications can be sent. Otherwise the app-defined WM_NOTIFY callback might see the modify flag set, even though WM_SETTEXT is supposed to clear it. Fixes crash #3 with Perfect! TextEdit.
Alex Villacís Lasso
alex at karlalex.palosanto.com
Sun Apr 27 14:21:02 CDT 2008
---
dlls/riched20/editor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 56596d5..1b1f4ea 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -2436,10 +2436,10 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
}
else
TRACE("WM_SETTEXT - NULL\n");
+ editor->nModifyStep = 0;
ME_CommitUndo(editor);
ME_EmptyUndoStack(editor);
ME_SetSelection(editor, 0, 0);
- editor->nModifyStep = 0;
ME_UpdateRepaint(editor);
return 1;
}
--
1.5.4.1
--------------060304000303020004000404--
More information about the wine-patches
mailing list