Author: mjmartin Date: Sun Jun 27 12:36:23 2010 New Revision: 47859
URL: http://svn.reactos.org/svn/reactos?rev=47859&view=rev Log: [win32k] - Add Check for spwndNext being null before accessing any of the members. Fixes bugcheck when using cubicexplorer.
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] Sun Jun 27 12:36:23 2010 @@ -961,7 +961,7 @@ * 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 @@ 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()) {