mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
Do not dereference NULL pointers and this time for real.
svn path=/trunk/; revision=16764
This commit is contained in:
@@ -164,7 +164,7 @@ WinPosActivateOtherWindow(PWINDOW_OBJECT Window)
|
||||
|
||||
done:
|
||||
Fg = NtUserGetForegroundWindow();
|
||||
if (!Fg || Window->Self == Fg)
|
||||
if (Wnd && (!Fg || Window->Self == Fg))
|
||||
{
|
||||
if (IntSetForegroundWindow(Wnd))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user