mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
Do not dereference NULL pointers and this time for real.
svn path=/trunk/; revision=16764
This commit is contained in:
parent
09e1dd8b9b
commit
dac7500f25
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue