mirror of
https://github.com/reactos/reactos.git
synced 2024-10-22 13:56:16 +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:
|
done:
|
||||||
Fg = NtUserGetForegroundWindow();
|
Fg = NtUserGetForegroundWindow();
|
||||||
if (!Fg || Window->Self == Fg)
|
if (Wnd && (!Fg || Window->Self == Fg))
|
||||||
{
|
{
|
||||||
if (IntSetForegroundWindow(Wnd))
|
if (IntSetForegroundWindow(Wnd))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue