From 03a7d800be49d4e52acd33aa392ee15e2de25bc2 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sun, 6 Dec 2009 22:52:51 +0000 Subject: [PATCH] [User32] - Patch by Nikolay Sivov bunglehead@gmail.com : Check for edit window to be here in case of destruction during handler execution. - Edit wine sync. svn path=/trunk/; revision=44445 --- reactos/dll/win32/user32/controls/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/user32/controls/edit.c b/reactos/dll/win32/user32/controls/edit.c index c7ea5b27859..77430fb8567 100644 --- a/reactos/dll/win32/user32/controls/edit.c +++ b/reactos/dll/win32/user32/controls/edit.c @@ -5484,7 +5484,7 @@ LRESULT WINAPI 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);