Commit aa737174 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent 0e16d4cd
......@@ -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);
......
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