- Add Check for spwndNext being null before accessing any of the members. Fixes bugcheck when using cubicexplorer.

svn path=/trunk/; revision=47859
This commit is contained in:
Michael Martin 2010-06-27 12:36:23 +00:00
parent 4203b20f25
commit 429fe0b64c

View file

@ -961,7 +961,7 @@ WinPosFixupFlags(WINDOWPOS *WinPos, PWINDOW_OBJECT Window)
* itself.
*/
if ((WinPos->hwnd == WinPos->hwndInsertAfter) ||
(WinPos->hwnd == InsAfterWnd->spwndNext->hSelf))
((InsAfterWnd->spwndNext) && (WinPos->hwnd == InsAfterWnd->spwndNext->hSelf)))
{
WinPos->flags |= SWP_NOZORDER;
}
@ -1006,10 +1006,10 @@ co_WinPosSetWindowPos(
if (!Window->Wnd) return FALSE;
/* FIXME: Get current active window from active queue. */
/*
* Only allow CSRSS to mess with the desktop window
*/
if ( Window->hSelf == IntGetDesktopWindow() &&
Window->pti->pEThread->ThreadsProcess != PsGetCurrentProcess())
{