[USER32]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 2 Mar 2011 13:23:13 +0000 (13:23 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 2 Mar 2011 13:23:13 +0000 (13:23 +0000)
commit3d476667b636cb3eaa445af0883ab2b61bf0e161
tree6494375c5d353b017ce649aa4ec83ef26cca7a38
parente12dbcd77d0c0a147f7591906e23fc2696f7f7e4
[USER32]
Patch by Thomas Faber:
When the Edit receives WM_KILLFOCUS, it will notify its parent (the ListView)
of losing focus, which in turn will send WM_CLOSE to destroy the edit control.
This will cause the edit to receive WM_DESTROY and free the EDITSTATE.
When control returns to the WM_KILLFOCUS handler, this would call
EDIT_UnlockBuffer on the now invalid EDITSTATE.
Fix this by checking the validity of the EDITSTATE before calling EDIT_UnlockBuffer.
Fixes explorer crash, when cancelling file renaming.
See issue #5895 for more details.

svn path=/trunk/; revision=50956
reactos/dll/win32/user32/controls/edit.c