Add explicit WM_CLOSE processing in the edit control

Dmitry Timoshkov dmitry at sloboda.ru
Sat Mar 3 23:35:11 CST 2001


Hello.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Make EDIT_UnlockBuffer cope with destroyed windows.

--- cvs/wine/controls/edit.c	Tue Feb 13 03:15:33 2001
+++ wine/controls/edit.c	Sun Mar  4 13:05:17 2001
@@ -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;






More information about the wine-patches mailing list