user32/edit: Check for edit window to be here in case of destruction during handler execution.
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index f4143b1..b512aa4 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -5390,7 +5390,7 @@
 		break;
 	}
 
-	if (es) EDIT_UnlockBuffer(es, FALSE);
+	if (IsWindow(hwnd) && es) EDIT_UnlockBuffer(es, FALSE);
 
         TRACE("hwnd=%p msg=%x (%s) -- 0x%08lx\n", hwnd, msg, SPY_GetMsgName(msg, hwnd), result);