Dylan Smith : wordpad: Empty the richedit undo buffer on creation.
Alexandre Julliard
julliard at winehq.org
Thu May 8 04:50:54 CDT 2008
Module: wine
Branch: master
Commit: 2b52dd845097f16076c0185b02a003f63898dcab
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b52dd845097f16076c0185b02a003f63898dcab
Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date: Thu May 8 00:07:59 2008 -0400
wordpad: Empty the richedit undo buffer on creation.
---
programs/wordpad/wordpad.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c
index cec080c..4fa8009 100644
--- a/programs/wordpad/wordpad.c
+++ b/programs/wordpad/wordpad.c
@@ -2419,6 +2419,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
set_caption(NULL);
set_bar_states();
set_fileformat(SF_RTF);
+ SendMessageW(hEditorWnd, EM_EMPTYUNDOBUFFER, 0, 0);
hPopupMenu = LoadMenuW(hInstance, MAKEINTRESOURCEW(IDM_POPUP));
get_default_printer_opts();
target_device(hMainWnd, wordWrap[reg_formatindex(fileFormat)]);
More information about the wine-cvs
mailing list