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

Alexandre Julliard julliard at winehq.org
Thu Dec 3 10:29:51 CST 2009


Module: wine
Branch: master
Commit: aa737174f07153e56622c70d26532e7c27d817d0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=aa737174f07153e56622c70d26532e7c27d817d0

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Wed Dec  2 23:22:12 2009 +0300

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

---

 dlls/user32/edit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index f4143b1..b512aa4 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -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);
 




More information about the wine-cvs mailing list