commit | fbc3619ca02bf7ac4f47aa5b1445ed43c054dfed | [log] [tgz] |
---|---|---|
author | Dmitry Timoshkov <dmitry@codeweavers.com> | Mon Mar 05 19:29:47 2001 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Mon Mar 05 19:29:47 2001 +0000 |
tree | 56a4b83c48171effbef30bc2ad39c655584c455d | |
parent | 389b039fe41c840a0ab1f023360eee4c9502bcb6 [diff] |
Make EDIT_UnlockBuffer cope with destroyed windows.
diff --git a/controls/edit.c b/controls/edit.c index caec3e8..0e1e531 100644 --- a/controls/edit.c +++ b/controls/edit.c
@@ -2154,6 +2154,13 @@ */ static void EDIT_UnlockBuffer(WND *wnd, EDITSTATE *es, BOOL force) { + /* Edit window might be already destroyed */ + if(!IsWindow(wnd->hwndSelf)) + { + WARN("edit wnd %04x already destroyed\n", wnd->hwndSelf); + return; + } + if (!es) { ERR("no EDITSTATE ... please report\n"); return;