user32/edit: Check for edit window to be here in case of destruction during handler execution.

This commit is contained in:
Nikolay Sivov 2009-12-02 23:22:12 +03:00 committed by Alexandre Julliard
parent 0e16d4cd5b
commit aa737174f0
1 changed files with 1 additions and 1 deletions

View File

@ -5390,7 +5390,7 @@ static LRESULT EditWndProc_common( HWND hwnd, UINT msg,
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);