Commit fbc3619c authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Make EDIT_UnlockBuffer cope with destroyed windows.

parent 389b039f
......@@ -2154,6 +2154,13 @@ static void EDIT_SetRectNP(WND *wnd, EDITSTATE *es, LPRECT rc)
*/
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment