Author: jimtabor
Date: Thu Feb 5 23:46:57 2015
New Revision: 66177
URL:
http://svn.reactos.org/svn/reactos?rev=66177&view=rev
Log:
[Win32ss]
- Validate the parent window before locking it. Attempt to fix CORE-9117.
Modified:
trunk/reactos/win32ss/user/ntuser/window.c
Modified: trunk/reactos/win32ss/user/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/window…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/window.c [iso-8859-1] Thu Feb 5 23:46:57 2015
@@ -1473,7 +1473,7 @@
if ( (pWindow->style & (WS_CHILD | WS_POPUP)) == WS_CHILD &&
!(pWindow->style & WS_EX_NOPARENTNOTIFY))
{
- if (pWindow->spwndParent && pWindow->spwndParent !=
UserGetDesktopWindow())
+ if (VerifyWnd(pWindow->spwndParent) && pWindow->spwndParent !=
UserGetDesktopWindow())
{
USER_REFERENCE_ENTRY Ref;
UserRefObjectCo(pWindow->spwndParent, &Ref);