mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
- Prevent double unlinking of window.
svn path=/trunk/; revision=8313
This commit is contained in:
parent
1dc0c10491
commit
b716aa0265
1 changed files with 3 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: window.c,v 1.188 2004/02/22 14:26:35 navaraf Exp $
|
||||
/* $Id: window.c,v 1.189 2004/02/22 15:14:27 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -1722,6 +1722,7 @@ NtUserDestroyWindow(HWND Wnd)
|
|||
Parent = Window->Parent;
|
||||
ExAcquireFastMutexUnsafe(&Parent->ChildrenListLock);
|
||||
IntUnlinkWindow(Window);
|
||||
Window->Parent = NULL;
|
||||
ExReleaseFastMutexUnsafe(&Parent->ChildrenListLock);
|
||||
|
||||
/* Destroy the window storage */
|
||||
|
|
Loading…
Reference in a new issue