[ros-diffs] [jimtabor] 44445: [User32] - Patch by Nikolay Sivov bunglehead at gmail.com : Check for edit window to be here in case of destruction during handler execution. - Edit wine sync.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Sun Dec 6 23:52:51 CET 2009


Author: jimtabor
Date: Sun Dec  6 23:52:51 2009
New Revision: 44445

URL: http://svn.reactos.org/svn/reactos?rev=44445&view=rev
Log:
[User32]
- Patch by Nikolay Sivov bunglehead at gmail.com : Check for edit window to be here in case of destruction during handler execution.
- Edit wine sync.

Modified:
    trunk/reactos/dll/win32/user32/controls/edit.c

Modified: trunk/reactos/dll/win32/user32/controls/edit.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/controls/edit.c?rev=44445&r1=44444&r2=44445&view=diff
==============================================================================
--- trunk/reactos/dll/win32/user32/controls/edit.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/controls/edit.c [iso-8859-1] Sun Dec  6 23:52:51 2009
@@ -5484,7 +5484,7 @@
 		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 Ros-diffs mailing list