mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[win32k]
- 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:
parent
4203b20f25
commit
429fe0b64c
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue