mirror of
https://github.com/reactos/reactos.git
synced 2024-08-13 14:47:31 +00:00
don't try to dereference NULL pointers
now Avira AntiVir installs without crashing the whole system svn path=/trunk/; revision=34300
This commit is contained in:
parent
138bd07f65
commit
4409400b6b
|
@ -1550,6 +1550,8 @@ co_IntDoSendMessage(HWND hWnd,
|
|||
MmCopyToCaller(UnsafeInfo, &Info, sizeof(NTUSERSENDMESSAGEINFO));
|
||||
return 0;
|
||||
}
|
||||
if (!Window->Wnd)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* FIXME: Check for an exiting window. */
|
||||
|
|
|
@ -899,6 +899,9 @@ NtUserMonitorFromWindow(
|
|||
RETURN(hMonitor);
|
||||
}
|
||||
|
||||
if (!Window->Wnd)
|
||||
RETURN(hMonitor);
|
||||
|
||||
Rect.left = Rect.right = Window->Wnd->WindowRect.left;
|
||||
Rect.top = Rect.bottom = Window->Wnd->WindowRect.bottom;
|
||||
|
||||
|
|
Loading…
Reference in a new issue