Make EDIT_UnlockBuffer cope with destroyed windows.

This commit is contained in:
Dmitry Timoshkov 2001-03-05 19:29:47 +00:00 committed by Alexandre Julliard
parent 389b039fe4
commit fbc3619ca0
1 changed files with 7 additions and 0 deletions

View File

@ -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;